Tailwind CSS v4 default palette
Tailwind olive-200: #E8E8E3
In Tailwind CSS v4, olive-200 is defined as --color-olive-200: oklch(93% 0.007 106.5), which is #E8E8E3 in hex and rgb(232, 232, 227): a pale gray with a faint yellow tint.
In OKLCH, olive-200 has a lightness of 93.0%, chroma 0.007 and hue 106.5°.
The value fits inside sRGB, so the hex #E8E8E3 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-200
| Tailwind v4 token | --color-olive-200 |
|---|---|
| OKLCH (source value) | oklch(93% 0.007 106.5) |
| HEX | #E8E8E3 |
| RGB | rgb(232, 232, 227) |
| HSL | hsl(60, 10%, 90%) |
| HWB | hwb(60 89% 9%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 2%, 9%) |
| Decimal | 15,263,971 |
| Utility classes | bg-olive-200, text-olive-200, border-olive-200 |
Tailwind olive scale
Contrast and accessibility
On olive-200, black text has a contrast ratio of 17.08:1 and passes AAA at any text size; white text reaches 1.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-200 | 17.08:1 | Pass | Pass | Pass | Pass | 92.2 |
| White text on olive-200 | 1.22:1 | Fail | Fail | Fail | Fail | −13.2 |
| Olive-200 text on white | 1.22:1 | Fail | Fail | Fail | Fail | 11.3 |
| Olive-200 text on black | 17.08:1 | Pass | Pass | Pass | Pass | −92.7 |
Tints and shades
Each step mixes var(--color-olive-200) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-olive-200), white 25%) in CSS.
Tints (mixed with white)
- 5%
#e9e9e4 - 15%
#ebebe7 - 25%
#eeeeea - 35%
#f0f0ed - 45%
#f2f2f0 - 55%
#f5f5f2 - 65%
#f7f7f5 - 75%
#f9f9f8 - 85%
#fcfcfb - 95%
#fefefe
Shades (mixed with black)
- 5%
#dcdcd8 - 15%
#c5c5c1 - 25%
#aeaeaa - 35%
#979794 - 45%
#80807d - 55%
#686866 - 65%
#51514f - 75%
#3a3a39 - 85%
#232322 - 95%
#0c0c0b
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, olive-200's complementary color is #E7E7EC (close to lavender), its analogous colors are #EAE7E3 and #E6E9E4, and its triadic partners are #E3E9EB and #ECE6E9. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #e7e7ec |
| Analogous | −30°, +30° | #eae7e3#e6e9e4 |
| Triadic | +120°, +240° | #e3e9eb#ece6e9 |
| Split-complementary | +150°, +210° | #e5e8ed#eae6eb |
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-200 is close to neutral: its OKLCH chroma is only 0.007, 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 |
|---|---|---|
| antiquewhite | #faebd7 | 3.0 |
| mistyrose | #ffe4e1 | 3.1 |
| linen | #faf0e6 | 3.3 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| stone-200 | #e7e5e4 | 0.9 |
| neutral-200 | #e5e5e5 | 1.1 |
| taupe-200 | #e8e4e3 | 1.1 |
Code snippets
<div class="bg-olive-200 text-black">...</div>
<p class="text-olive-200 border-olive-200">...</p>.element {
color: var(--color-olive-200);
background-color: oklch(93% 0.007 106.5);
border-color: #e8e8e3;
outline-color: rgb(232 232 227);
}import SwiftUI
extension Color {
static let olive200 = Color(red: 0.910, green: 0.910, blue: 0.890)
}import androidx.compose.ui.graphics.Color
val Olive200 = Color(0xFFE8E8E3)import 'package:flutter/material.dart';
const olive200 = Color(0xFFE8E8E3);<!-- res/values/colors.xml -->
<color name="olive_200">#E8E8E3</color>Frequently asked questions
- What is the hex code for Tailwind olive-200?
- In Tailwind CSS v4, olive-200 is oklch(93% 0.007 106.5), which converts to #E8E8E3 (rgb(232, 232, 227)) in sRGB.
- Is olive-200 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 #E8E8E3.
- How do I use olive-200 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-olive-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on olive-200?
- White text on olive-200 has a contrast ratio of 1.22:1, which fails AA even for large text under WCAG 2.2. Black text reaches 17.08:1 and passes both AA and AAA. In APCA terms that is Lc −13.2 for white and Lc 92.2 for black.
- Which CSS named color is closest to olive-200?
- The closest is antiquewhite (#FAEBD7) at ΔE OK 3.0, followed by mistyrose and linen.
Last reviewed by Arielton Oberek.