Tailwind CSS v4 default palette
Tailwind olive-700: #474739
In Tailwind CSS v4, olive-700 is defined as --color-olive-700: oklch(39.4% 0.023 107.4), which is #474739 in hex and rgb(71, 71, 57): a dark, grayish olive.
In OKLCH, olive-700 has a lightness of 39.4%, chroma 0.023 and hue 107.4°.
The value fits inside sRGB, so the hex #474739 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-700
| Tailwind v4 token | --color-olive-700 |
|---|---|
| OKLCH (source value) | oklch(39.4% 0.023 107.4) |
| HEX | #474739 |
| RGB | rgb(71, 71, 57) |
| HSL | hsl(60, 11%, 25%) |
| HWB | hwb(60 22% 72%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 20%, 72%) |
| Decimal | 4,671,289 |
| Utility classes | bg-olive-700, text-olive-700, border-olive-700 |
Tailwind olive scale
Contrast and accessibility
On olive-700, white text has a contrast ratio of 9.42:1 and passes AAA at any text size; black text reaches 2.22: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-700 | 2.22:1 | Fail | Fail | Fail | Fail | 12.1 |
| White text on olive-700 | 9.42:1 | Pass | Pass | Pass | Pass | −96.1 |
| Olive-700 text on white | 9.42:1 | Pass | Pass | Pass | Pass | 91.8 |
| Olive-700 text on black | 2.22:1 | Fail | Fail | Fail | Fail | −10.6 |
Tints and shades
Each step mixes var(--color-olive-700) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-olive-700), white 25%) in CSS.
Tints (mixed with white)
- 5%
#505043 - 15%
#636357 - 25%
#75756b - 35%
#87877e - 45%
#9a9a92 - 55%
#acaca6 - 65%
#bfbfba - 75%
#d1d1ce - 85%
#e3e3e1 - 95%
#f6f6f5
Shades (mixed with black)
- 5%
#434336 - 15%
#3c3c30 - 25%
#35352b - 35%
#2e2e25 - 45%
#27271f - 55%
#20201a - 65%
#191914 - 75%
#12120e - 85%
#0b0b09 - 95%
#040403
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, olive-700's complementary color is #454452 (close to darkslategray), its analogous colors are #4D4538 and #40493D, and its triadic partners are #394950 and #504148. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #454452 |
| Analogous | −30°, +30° | #4d4538#40493d |
| Triadic | +120°, +240° | #394950#504148 |
| Split-complementary | +150°, +210° | #3e4753#4b424e |
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-700 is close to neutral: its OKLCH chroma is only 0.023, 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 |
|---|---|---|
| darkslategray | #2f4f4f | 4.5 |
| darkolivegreen | #556b2f | 12.2 |
| saddlebrown | #8b4513 | 12.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| stone-700 | #44403b | 2.6 |
| neutral-700 | #404040 | 3.3 |
| mist-700 | #394447 | 3.5 |
Code snippets
<div class="bg-olive-700 text-white">...</div>
<p class="text-olive-700 border-olive-700">...</p>.element {
color: var(--color-olive-700);
background-color: oklch(39.4% 0.023 107.4);
border-color: #474739;
outline-color: rgb(71 71 57);
}import SwiftUI
extension Color {
static let olive700 = Color(red: 0.278, green: 0.278, blue: 0.224)
}import androidx.compose.ui.graphics.Color
val Olive700 = Color(0xFF474739)import 'package:flutter/material.dart';
const olive700 = Color(0xFF474739);<!-- res/values/colors.xml -->
<color name="olive_700">#474739</color>Frequently asked questions
- What is the hex code for Tailwind olive-700?
- In Tailwind CSS v4, olive-700 is oklch(39.4% 0.023 107.4), which converts to #474739 (rgb(71, 71, 57)) in sRGB.
- Is olive-700 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 #474739.
- How do I use olive-700 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-olive-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on olive-700?
- White text on olive-700 has a contrast ratio of 9.42:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.22:1 and fails AA even for large text. In APCA terms that is Lc −96.1 for white and Lc 12.1 for black.
- Which CSS named color is closest to olive-700?
- The closest is darkslategray (#2F4F4F) at ΔE OK 4.5, followed by darkolivegreen and saddlebrown.
Last reviewed by Arielton Oberek.