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.
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
| Tailwind v4 token | --color-olive-600 |
|---|---|
| OKLCH (source value) | oklch(46.6% 0.025 107.3) |
| HEX | #5B5B4B |
| RGB | rgb(91, 91, 75) |
| HSL | hsl(60, 10%, 33%) |
| HWB | hwb(60 29% 64%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 18%, 64%) |
| Decimal | 5,987,147 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on olive-600 | 3.04:1 | Fail | Pass | Fail | Fail | 20.2 |
| White text on olive-600 | 6.90:1 | Pass | Pass | Fail | Pass | −88.9 |
| Olive-600 text on white | 6.90:1 | Pass | Pass | Fail | Pass | 83.9 |
| Olive-600 text on black | 3.04:1 | Fail | Pass | Fail | Fail | −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)
- 5%
#636354 - 15%
#747466 - 25%
#848478 - 35%
#94948a - 45%
#a5a59c - 55%
#b5b5ae - 65%
#c6c6c0 - 75%
#d6d6d2 - 85%
#e6e6e4 - 95%
#f7f7f6
Shades (mixed with black)
- 5%
#565647 - 15%
#4d4d40 - 25%
#444438 - 35%
#3b3b31 - 45%
#323229 - 55%
#292922 - 65%
#20201a - 75%
#171713 - 85%
#0e0e0b - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| dimgray | #696969 | 6.0 |
| darkolivegreen | #556b2f | 7.3 |
| darkslategray | #2f4f4f | 7.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| stone-600 | #57534d | 2.8 |
| neutral-600 | #525252 | 3.7 |
| taupe-600 | #5b4f4b | 3.7 |
Code snippets
<div class="bg-olive-600 text-white">...</div>
<p class="text-olive-600 border-olive-600">...</p>.element {
color: var(--color-olive-600);
background-color: oklch(46.6% 0.025 107.3);
border-color: #5b5b4b;
outline-color: rgb(91 91 75);
}import SwiftUI
extension Color {
static let olive600 = Color(red: 0.357, green: 0.357, blue: 0.294)
}import androidx.compose.ui.graphics.Color
val Olive600 = Color(0xFF5B5B4B)import 'package:flutter/material.dart';
const olive600 = Color(0xFF5B5B4B);<!-- 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.