Skip to content

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.

olive-700#474739

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

Color codes for olive-700
Tailwind v4 token--color-olive-700
OKLCH (source value)oklch(39.4% 0.023 107.4)
HEX#474739
RGBrgb(71, 71, 57)
HSLhsl(60, 11%, 25%)
HWBhwb(60 22% 72%)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 20%, 72%)
Decimal4,671,289
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on olive-7002.22:1FailFailFailFail12.1
White text on olive-7009.42:1PassPassPassPass−96.1
Olive-700 text on white9.42:1PassPassPassPass91.8
Olive-700 text on black2.22:1FailFailFailFail−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)

  1. 5%
    #505043
  2. 15%
    #636357
  3. 25%
    #75756b
  4. 35%
    #87877e
  5. 45%
    #9a9a92
  6. 55%
    #acaca6
  7. 65%
    #bfbfba
  8. 75%
    #d1d1ce
  9. 85%
    #e3e3e1
  10. 95%
    #f6f6f5

Shades (mixed with black)

  1. 5%
    #434336
  2. 15%
    #3c3c30
  3. 25%
    #35352b
  4. 35%
    #2e2e25
  5. 45%
    #27271f
  6. 55%
    #20201a
  7. 65%
    #191914
  8. 75%
    #12120e
  9. 85%
    #0b0b09
  10. 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.

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

Nearest CSS named colors
ColorHEXΔE OK
darkslategray#2f4f4f4.5
darkolivegreen#556b2f12.2
saddlebrown#8b451312.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
stone-700#44403b2.6
neutral-700#4040403.3
mist-700#3944473.5

Code snippets

Tailwind CSS
<div class="bg-olive-700 text-white">...</div>
<p class="text-olive-700 border-olive-700">...</p>
CSS
.element {
  color: var(--color-olive-700);
  background-color: oklch(39.4% 0.023 107.4);
  border-color: #474739;
  outline-color: rgb(71 71 57);
}
SwiftUI
import SwiftUI

extension Color {
  static let olive700 = Color(red: 0.278, green: 0.278, blue: 0.224)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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