Skip to content

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.

red-950#460809

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

Color codes for red-950
Tailwind v4 token--color-red-950
OKLCH (source value)oklch(25.8% 0.092 26.042)
HEX#460809
RGBrgb(70, 8, 9)
HSLhsl(359, 79%, 15%)
HWBhwb(359 3% 73%)
CMYK (naive, no ICC profile)cmyk(0%, 89%, 87%, 73%)
Decimal4,589,577
Tailwind v3 hex#450A0A
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on red-9501.29:1FailFailFailFail0.0
White text on red-95016.16:1PassPassPassPass−105.0
Red-950 text on white16.16:1PassPassPassPass102.3
Red-950 text on black1.29:1FailFailFailFail0.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)

  1. 5%
    #4f1415
  2. 15%
    #622d2e
  3. 25%
    #744647
  4. 35%
    #875e5f
  5. 45%
    #997778
  6. 55%
    #ac9090
  7. 65%
    #bea9a9
  8. 75%
    #d1c1c2
  9. 85%
    #e3dada
  10. 95%
    #f6f3f3

Shades (mixed with black)

  1. 5%
    #430809
  2. 15%
    #3c0708
  3. 25%
    #350607
  4. 35%
    #2e0506
  5. 45%
    #270405
  6. 55%
    #1f0404
  7. 65%
    #190303
  8. 75%
    #120202
  9. 85%
    #0b0101
  10. 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.

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

Nearest CSS named colors
ColorHEXΔE OK
maroon#80000013.4
darkred#8b000015.9
darkslategray#2f4f4f19.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-950#4413062.2
rose-950#4d02183.0
amber-950#4619013.9

Code snippets

Tailwind CSS
<div class="bg-red-950 text-white">...</div>
<p class="text-red-950 border-red-950">...</p>
CSS
.element {
  color: var(--color-red-950);
  background-color: oklch(25.8% 0.092 26.042);
  border-color: #460809;
  outline-color: rgb(70 8 9);
}
SwiftUI
import SwiftUI

extension Color {
  static let red950 = Color(red: 0.275, green: 0.031, blue: 0.035)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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