Skip to content

Tailwind CSS v4 default palette

Tailwind olive-600: #5B5B4B

In Tailwind CSS v4, olive-600 is defined as --color-olive-600: oklch(46.6% 0.025 107.3), which is #5B5B4B in hex and rgb(91, 91, 75): a medium-dark, grayish olive.

olive-600#5B5B4B

In OKLCH, olive-600 has a lightness of 46.6%, chroma 0.025 and hue 107.3°.

The value fits inside sRGB, so the hex #5B5B4B 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-600

Color codes for olive-600
Tailwind v4 token--color-olive-600
OKLCH (source value)oklch(46.6% 0.025 107.3)
HEX#5B5B4B
RGBrgb(91, 91, 75)
HSLhsl(60, 10%, 33%)
HWBhwb(60 29% 64%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 18%, 64%)
Decimal5,987,147
Utility classesbg-olive-600, text-olive-600, border-olive-600

Tailwind olive scale

Contrast and accessibility

On olive-600, white text has a contrast ratio of 6.90:1 and passes AA for normal text; black text reaches 3.04: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-6003.04:1FailPassFailFail20.2
White text on olive-6006.90:1PassPassFailPass−88.9
Olive-600 text on white6.90:1PassPassFailPass83.9
Olive-600 text on black3.04:1FailPassFailFail−18.1

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #636354
  2. 15%
    #747466
  3. 25%
    #848478
  4. 35%
    #94948a
  5. 45%
    #a5a59c
  6. 55%
    #b5b5ae
  7. 65%
    #c6c6c0
  8. 75%
    #d6d6d2
  9. 85%
    #e6e6e4
  10. 95%
    #f7f7f6

Shades (mixed with black)

  1. 5%
    #565647
  2. 15%
    #4d4d40
  3. 25%
    #444438
  4. 35%
    #3b3b31
  5. 45%
    #323229
  6. 55%
    #292922
  7. 65%
    #20201a
  8. 75%
    #171713
  9. 85%
    #0e0e0b
  10. 95%
    #050504

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, olive-600's complementary color is #585867 (close to dimgray), its analogous colors are #62584A and #535D50, and its triadic partners are #4B5D65 and #65545C. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#585867
Analogous−30°, +30°#62584a#535d50
Triadic+120°, +240°#4b5d65#65545c
Split-complementary+150°, +210°#515a68#605663

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-600 is close to neutral: its OKLCH chroma is only 0.025, 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
dimgray#6969696.0
darkolivegreen#556b2f7.3
darkslategray#2f4f4f7.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-600#57534d2.8
neutral-600#5252523.7
taupe-600#5b4f4b3.7

Code snippets

Tailwind CSS
<div class="bg-olive-600 text-white">...</div>
<p class="text-olive-600 border-olive-600">...</p>
CSS
.element {
  color: var(--color-olive-600);
  background-color: oklch(46.6% 0.025 107.3);
  border-color: #5b5b4b;
  outline-color: rgb(91 91 75);
}
SwiftUI
import SwiftUI

extension Color {
  static let olive600 = Color(red: 0.357, green: 0.357, blue: 0.294)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const olive600 = Color(0xFF5B5B4B);
Android XML
<!-- res/values/colors.xml -->
<color name="olive_600">#5B5B4B</color>

Frequently asked questions

What is the hex code for Tailwind olive-600?
In Tailwind CSS v4, olive-600 is oklch(46.6% 0.025 107.3), which converts to #5B5B4B (rgb(91, 91, 75)) in sRGB.
Is olive-600 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 #5B5B4B.
How do I use olive-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-olive-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on olive-600?
White text on olive-600 has a contrast ratio of 6.90:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.04:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −88.9 for white and Lc 20.2 for black.
Which CSS named color is closest to olive-600?
The closest is dimgray (#696969) at ΔE OK 6.0, followed by darkolivegreen and darkslategray.

Last reviewed by Arielton Oberek.