Tailwind CSS v4 default palette
Tailwind orange-900: #7E2A0C
In Tailwind CSS v4, orange-900 is defined as --color-orange-900: oklch(40.8% 0.123 38.172), which is #7E2A0C in hex and rgb(126, 42, 12): a dark, moderately saturated brown. In Tailwind v3, orange-900 was #7C2D12.
In OKLCH, orange-900 has a lightness of 40.8%, chroma 0.123 and hue 38.2°.
The value fits inside sRGB, so the hex #7E2A0C represents it without loss on any screen.
In v3, orange-900 was #7C2D12. The v4 value is ΔE OK 0.7 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-900
| Tailwind v4 token | --color-orange-900 |
|---|---|
| OKLCH (source value) | oklch(40.8% 0.123 38.172) |
| HEX | #7E2A0C |
| RGB | rgb(126, 42, 12) |
| HSL | hsl(16, 83%, 27%) |
| HWB | hwb(16 5% 51%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 67%, 90%, 51%) |
| Decimal | 8,268,300 |
| Tailwind v3 hex | #7C2D12 |
| Utility classes | bg-orange-900, text-orange-900, border-orange-900 |
Tailwind orange scale
Contrast and accessibility
On orange-900, white text has a contrast ratio of 9.44: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 orange-900 | 2.22:1 | Fail | Fail | Fail | Fail | 13.0 |
| White text on orange-900 | 9.44:1 | Pass | Pass | Pass | Pass | −95.3 |
| Orange-900 text on white | 9.44:1 | Pass | Pass | Pass | Pass | 91.0 |
| Orange-900 text on black | 2.22:1 | Fail | Fail | Fail | Fail | −11.4 |
Tints and shades
Each step mixes var(--color-orange-900) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-orange-900), white 25%) in CSS.
Tints (mixed with white)
- 5%
#843518 - 15%
#914a30 - 25%
#9e5f49 - 35%
#ab7561 - 45%
#b88a79 - 55%
#c59f92 - 65%
#d2b4aa - 75%
#dfcac2 - 85%
#ecdfdb - 95%
#f9f4f3
Shades (mixed with black)
- 5%
#78280b - 15%
#6b240a - 25%
#5f2009 - 35%
#521b08 - 45%
#451707 - 55%
#391305 - 65%
#2c0f04 - 75%
#200b03 - 85%
#130602 - 95%
#060201
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, orange-900's complementary color is #00556B (close to darkslategray), its analogous colors are #7D253D and #6F3B00, and its triadic partners are #005C2F and #3D3F8A. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00556b |
| Analogous | −30°, +30° | #7d253d#6f3b00 |
| Triadic | +120°, +240° | #005c2f#3d3f8a |
| Split-complementary | +150°, +210° | #005953#004c88 |
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-900 is a warm color: its hue is 16° 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
| Color | HEX | ΔE OK |
|---|---|---|
| darkred | #8b0000 | 4.7 |
| maroon | #800000 | 4.9 |
| saddlebrown | #8b4513 | 6.9 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| amber-900 | #7b3306 | 2.0 |
| red-900 | #82181a | 3.6 |
| yellow-900 | #733e0a | 4.8 |
Code snippets
<div class="bg-orange-900 text-white">...</div>
<p class="text-orange-900 border-orange-900">...</p>.element {
color: var(--color-orange-900);
background-color: oklch(40.8% 0.123 38.172);
border-color: #7e2a0c;
outline-color: rgb(126 42 12);
}import SwiftUI
extension Color {
static let orange900 = Color(red: 0.494, green: 0.165, blue: 0.047)
}import androidx.compose.ui.graphics.Color
val Orange900 = Color(0xFF7E2A0C)import 'package:flutter/material.dart';
const orange900 = Color(0xFF7E2A0C);<!-- res/values/colors.xml -->
<color name="orange_900">#7E2A0C</color>Frequently asked questions
- What is the hex code for Tailwind orange-900?
- In Tailwind CSS v4, orange-900 is oklch(40.8% 0.123 38.172), which converts to #7E2A0C (rgb(126, 42, 12)) in sRGB. In Tailwind v3 the same name was #7C2D12.
- What is the difference between orange-900 in Tailwind v3 and v4?
- v3 used the hex #7C2D12; v4 redefined the palette in OKLCH as oklch(40.8% 0.123 38.172). In v3, orange-900 was #7C2D12. The v4 value is ΔE OK 0.7 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use orange-900 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-orange-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on orange-900?
- White text on orange-900 has a contrast ratio of 9.44: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 −95.3 for white and Lc 13.0 for black.
- Which CSS named color is closest to orange-900?
- The closest is darkred (#8B0000) at ΔE OK 4.7, followed by maroon and saddlebrown.
Last reviewed by Arielton Oberek.