Skip to content

Tailwind CSS v4 default palette

Tailwind olive-950: #0C0C09

In Tailwind CSS v4, olive-950 is defined as --color-olive-950: oklch(15.3% 0.006 107.1), which is #0C0C09 in hex and rgb(12, 12, 9): a near-black with a faint olive tint.

olive-950#0C0C09

In OKLCH, olive-950 has a lightness of 15.3%, chroma 0.006 and hue 107.1°.

The value fits inside sRGB, so the hex #0C0C09 represents it without loss on any screen.

Tailwind olive is a tinted neutral added in v4.2: a gray with a yellow-green cast. It has no v3 equivalent.

Color codes for olive-950

Color codes for olive-950
Tailwind v4 token--color-olive-950
OKLCH (source value)oklch(15.3% 0.006 107.1)
HEX#0C0C09
RGBrgb(12, 12, 9)
HSLhsl(60, 14%, 4%)
HWBhwb(60 4% 95%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 25%, 95%)
Decimal789,513
Utility classesbg-olive-950, text-olive-950, border-olive-950

Tailwind olive scale

Contrast and accessibility

On olive-950, white text has a contrast ratio of 19.58:1 and passes AAA at any text size; black text reaches 1.07:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on olive-9501.07:1FailFailFailFail0.0
White text on olive-95019.58:1PassPassPassPass−107.7
Olive-950 text on white19.58:1PassPassPassPass105.8
Olive-950 text on black1.07:1FailFailFailFail0.0

Tints and shades

Each step mixes var(--color-olive-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-olive-950), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #181815
  2. 15%
    #30302e
  3. 25%
    #494947
  4. 35%
    #61615f
  5. 45%
    #797978
  6. 55%
    #929290
  7. 65%
    #aaaaa9
  8. 75%
    #c2c2c2
  9. 85%
    #dbdbda
  10. 95%
    #f3f3f3

Shades (mixed with black)

  1. 5%
    #0b0b09
  2. 15%
    #0a0a08
  3. 25%
    #090907
  4. 35%
    #080806
  5. 45%
    #070705
  6. 55%
    #050504
  7. 65%
    #040403
  8. 75%
    #030302
  9. 85%
    #020201
  10. 95%
    #010100

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, olive-950's complementary color is #0C0B0E (close to black), its analogous colors are #0D0B09 and #0B0C0A, and its triadic partners are #090C0E and #0E0B0C. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#0c0b0e
Analogous−30°, +30°#0d0b09#0b0c0a
Triadic+120°, +240°#090c0e#0e0b0c
Split-complementary+150°, +210°#0a0c0e#0d0b0d

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

Tailwind olive-950 is close to neutral: its OKLCH chroma is only 0.006, so its temperature comes from context. The faint 60° hue gives it a slightly warm cast.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
black#00000015.3
midnightblue#19197020.1
navy#00008022.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
taupe-950#0c0a090.8
stone-950#0c0a090.8
neutral-950#0a0a0a1.0

Code snippets

Tailwind CSS
<div class="bg-olive-950 text-white">...</div>
<p class="text-olive-950 border-olive-950">...</p>
CSS
.element {
  color: var(--color-olive-950);
  background-color: oklch(15.3% 0.006 107.1);
  border-color: #0c0c09;
  outline-color: rgb(12 12 9);
}
SwiftUI
import SwiftUI

extension Color {
  static let olive950 = Color(red: 0.047, green: 0.047, blue: 0.035)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Olive950 = Color(0xFF0C0C09)
Flutter
import 'package:flutter/material.dart';

const olive950 = Color(0xFF0C0C09);
Android XML
<!-- res/values/colors.xml -->
<color name="olive_950">#0C0C09</color>

Frequently asked questions

What is the hex code for Tailwind olive-950?
In Tailwind CSS v4, olive-950 is oklch(15.3% 0.006 107.1), which converts to #0C0C09 (rgb(12, 12, 9)) in sRGB.
Is olive-950 available in Tailwind v3?
No. The olive scale was added in Tailwind CSS v4.2. In v3 you can recreate it in tailwind.config.js under theme.extend.colors with the hex #0C0C09.
How do I use olive-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-olive-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on olive-950?
White text on olive-950 has a contrast ratio of 19.58:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.07:1 and fails AA even for large text. In APCA terms that is Lc −107.7 for white and Lc 0.0 for black.
Which CSS named color is closest to olive-950?
The closest is black (#000000) at ΔE OK 15.3, followed by midnightblue and navy.

Last reviewed by Arielton Oberek.