Skip to content

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.

olive-200#E8E8E3

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

Color codes for olive-200
Tailwind v4 token--color-olive-200
OKLCH (source value)oklch(93% 0.007 106.5)
HEX#E8E8E3
RGBrgb(232, 232, 227)
HSLhsl(60, 10%, 90%)
HWBhwb(60 89% 9%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 2%, 9%)
Decimal15,263,971
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on olive-20017.08:1PassPassPassPass92.2
White text on olive-2001.22:1FailFailFailFail−13.2
Olive-200 text on white1.22:1FailFailFailFail11.3
Olive-200 text on black17.08:1PassPassPassPass−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)

  1. 5%
    #e9e9e4
  2. 15%
    #ebebe7
  3. 25%
    #eeeeea
  4. 35%
    #f0f0ed
  5. 45%
    #f2f2f0
  6. 55%
    #f5f5f2
  7. 65%
    #f7f7f5
  8. 75%
    #f9f9f8
  9. 85%
    #fcfcfb
  10. 95%
    #fefefe

Shades (mixed with black)

  1. 5%
    #dcdcd8
  2. 15%
    #c5c5c1
  3. 25%
    #aeaeaa
  4. 35%
    #979794
  5. 45%
    #80807d
  6. 55%
    #686866
  7. 65%
    #51514f
  8. 75%
    #3a3a39
  9. 85%
    #232322
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
antiquewhite#faebd73.0
mistyrose#ffe4e13.1
linen#faf0e63.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-200#e7e5e40.9
neutral-200#e5e5e51.1
taupe-200#e8e4e31.1

Code snippets

Tailwind CSS
<div class="bg-olive-200 text-black">...</div>
<p class="text-olive-200 border-olive-200">...</p>
CSS
.element {
  color: var(--color-olive-200);
  background-color: oklch(93% 0.007 106.5);
  border-color: #e8e8e3;
  outline-color: rgb(232 232 227);
}
SwiftUI
import SwiftUI

extension Color {
  static let olive200 = Color(red: 0.910, green: 0.910, blue: 0.890)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const olive200 = Color(0xFFE8E8E3);
Android XML
<!-- 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.