Skip to content

Tailwind CSS v4 default palette

Tailwind orange-800: #9F2D00

In Tailwind CSS v4, orange-800 is defined as --color-orange-800: oklch(47% 0.157 37.304), which is #9F2D00 in hex and rgb(159, 45, 0): a medium-dark, vivid brown. In Tailwind v3, orange-800 was #9A3412.

orange-800#9F2D00

In OKLCH, orange-800 has a lightness of 47.0%, chroma 0.157 and hue 37.3°.

This OKLCH value lies outside sRGB. The hex #9F2D00 is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.5756 0.212 0.0827).

In v3, orange-800 was #9A3412. The v4 value is ΔE OK 1.4 away, below the point where most people can tell them apart; v4 is more saturated.

Tailwind orange runs from a pale peach at 50 to a deep burnt orange at 950, with its highest chroma at 600.

Color codes for orange-800

Color codes for orange-800
Tailwind v4 token--color-orange-800
OKLCH (source value)oklch(47% 0.157 37.304)
HEX#9F2D00
RGBrgb(159, 45, 0)
HSLhsl(17, 100%, 31%)
HWBhwb(17 0% 38%)
CMYK (naive, no ICC profile)cmyk(0%, 72%, 100%, 38%)
Decimal10,431,744
Display P3color(display-p3 0.5756 0.212 0.0827)
Tailwind v3 hex#9A3412
Utility classesbg-orange-800, text-orange-800, border-orange-800

Tailwind orange scale

Contrast and accessibility

On orange-800, white text has a contrast ratio of 7.36:1 and passes AAA at any text size; black text reaches 2.84: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 orange-8002.84:1FailFailFailFail19.7
White text on orange-8007.36:1PassPassPassPass−89.3
Orange-800 text on white7.36:1PassPassPassPass84.4
Orange-800 text on black2.84:1FailFailFailFail−17.6

Tints and shades

Each step mixes var(--color-orange-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-orange-800), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #a4380d
  2. 15%
    #ad4d26
  3. 25%
    #b76240
  4. 35%
    #c17759
  5. 45%
    #ca8c73
  6. 55%
    #d4a18c
  7. 65%
    #ddb6a6
  8. 75%
    #e7cbbf
  9. 85%
    #f1e0d9
  10. 95%
    #faf5f2

Shades (mixed with black)

  1. 5%
    #972b00
  2. 15%
    #872600
  3. 25%
    #772200
  4. 35%
    #671d00
  5. 45%
    #571900
  6. 55%
    #481400
  7. 65%
    #381000
  8. 75%
    #280b00
  9. 85%
    #180700
  10. 95%
    #080200

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, orange-800's complementary color is #006881 (close to teal), its analogous colors are #9E254B and #874900, and its triadic partners are #00703A and #494BB0. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#006881
Analogous−30°, +30°#9e254b#874900
Triadic+120°, +240°#00703a#494bb0
Split-complementary+150°, +210°#006c65#005dad

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 orange-800 is a warm color: its hue is 17° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.

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
brown#a52a2a3.4
firebrick#b222224.7
saddlebrown#8b45135.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
amber-800#973c003.0
red-800#9f07124.5
orange-900#7e2a0c7.1

Code snippets

Tailwind CSS
<div class="bg-orange-800 text-white">...</div>
<p class="text-orange-800 border-orange-800">...</p>
CSS
.element {
  color: var(--color-orange-800);
  background-color: oklch(47% 0.157 37.304);
  border-color: #9f2d00;
  outline-color: rgb(159 45 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let orange800 = Color(red: 0.624, green: 0.176, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const orange800 = Color(0xFF9F2D00);
Android XML
<!-- res/values/colors.xml -->
<color name="orange_800">#9F2D00</color>

Frequently asked questions

What is the hex code for Tailwind orange-800?
In Tailwind CSS v4, orange-800 is oklch(47% 0.157 37.304), which converts to #9F2D00 (rgb(159, 45, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #9A3412.
What is the difference between orange-800 in Tailwind v3 and v4?
v3 used the hex #9A3412; v4 redefined the palette in OKLCH as oklch(47% 0.157 37.304). In v3, orange-800 was #9A3412. The v4 value is ΔE OK 1.4 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use orange-800 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-orange-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on orange-800?
White text on orange-800 has a contrast ratio of 7.36:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.84:1 and fails AA even for large text. In APCA terms that is Lc −89.3 for white and Lc 19.7 for black.
Which CSS named color is closest to orange-800?
The closest is brown (#A52A2A) at ΔE OK 3.4, followed by firebrick and saddlebrown.

Last reviewed by Arielton Oberek.