Tailwind CSS v4 default palette
Tailwind red-950: #460809
In Tailwind CSS v4, red-950 is defined as --color-red-950: oklch(25.8% 0.092 26.042), which is #460809 in hex and rgb(70, 8, 9): a very dark, moderately saturated red. In Tailwind v3, red-950 was #450A0A.
In OKLCH, red-950 has a lightness of 25.8%, chroma 0.092 and hue 26.0°.
The value fits inside sRGB, so the hex #460809 represents it without loss on any screen.
In v3, red-950 was #450A0A. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.
Tailwind red is the default choice for errors and destructive actions; the 600 and 700 shades are the usual picks for text and buttons on white.
Color codes for red-950
| Tailwind v4 token | --color-red-950 |
|---|---|
| OKLCH (source value) | oklch(25.8% 0.092 26.042) |
| HEX | #460809 |
| RGB | rgb(70, 8, 9) |
| HSL | hsl(359, 79%, 15%) |
| HWB | hwb(359 3% 73%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 89%, 87%, 73%) |
| Decimal | 4,589,577 |
| Tailwind v3 hex | #450A0A |
| Utility classes | bg-red-950, text-red-950, border-red-950 |
Tailwind red scale
Contrast and accessibility
On red-950, white text has a contrast ratio of 16.16:1 and passes AAA at any text size; black text reaches 1.29: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 red-950 | 1.29:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on red-950 | 16.16:1 | Pass | Pass | Pass | Pass | −105.0 |
| Red-950 text on white | 16.16:1 | Pass | Pass | Pass | Pass | 102.3 |
| Red-950 text on black | 1.29:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-red-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-red-950), white 25%) in CSS.
Tints (mixed with white)
- 5%
#4f1415 - 15%
#622d2e - 25%
#744647 - 35%
#875e5f - 45%
#997778 - 55%
#ac9090 - 65%
#bea9a9 - 75%
#d1c1c2 - 85%
#e3dada - 95%
#f6f3f3
Shades (mixed with black)
- 5%
#430809 - 15%
#3c0708 - 25%
#350607 - 35%
#2e0506 - 45%
#270405 - 55%
#1f0404 - 65%
#190303 - 75%
#120202 - 85%
#0b0101 - 95%
#040000
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, red-950's complementary color is #002B32 (close to midnightblue), its analogous colors are #430825 and #401400, and its triadic partners are #002E02 and #0E1F4F. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #002b32 |
| Analogous | −30°, +30° | #430825#401400 |
| Triadic | +120°, +240° | #002e02#0e1f4f |
| Split-complementary | +150°, +210° | #002e22#002745 |
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 red-950 is a warm color: its hue is 359° 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 |
|---|---|---|
| maroon | #800000 | 13.4 |
| darkred | #8b0000 | 15.9 |
| darkslategray | #2f4f4f | 19.4 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| orange-950 | #441306 | 2.2 |
| rose-950 | #4d0218 | 3.0 |
| amber-950 | #461901 | 3.9 |
Code snippets
<div class="bg-red-950 text-white">...</div>
<p class="text-red-950 border-red-950">...</p>.element {
color: var(--color-red-950);
background-color: oklch(25.8% 0.092 26.042);
border-color: #460809;
outline-color: rgb(70 8 9);
}import SwiftUI
extension Color {
static let red950 = Color(red: 0.275, green: 0.031, blue: 0.035)
}import androidx.compose.ui.graphics.Color
val Red950 = Color(0xFF460809)import 'package:flutter/material.dart';
const red950 = Color(0xFF460809);<!-- res/values/colors.xml -->
<color name="red_950">#460809</color>Frequently asked questions
- What is the hex code for Tailwind red-950?
- In Tailwind CSS v4, red-950 is oklch(25.8% 0.092 26.042), which converts to #460809 (rgb(70, 8, 9)) in sRGB. In Tailwind v3 the same name was #450A0A.
- What is the difference between red-950 in Tailwind v3 and v4?
- v3 used the hex #450A0A; v4 redefined the palette in OKLCH as oklch(25.8% 0.092 26.042). In v3, red-950 was #450A0A. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.
- How do I use red-950 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-red-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on red-950?
- White text on red-950 has a contrast ratio of 16.16:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.29:1 and fails AA even for large text. In APCA terms that is Lc −105.0 for white and Lc 0.0 for black.
- Which CSS named color is closest to red-950?
- The closest is maroon (#800000) at ΔE OK 13.4, followed by darkred and darkslategray.
Last reviewed by Arielton Oberek.