Skip to content

Tailwind CSS v4 default palette

Tailwind red-600: #E7000B

In Tailwind CSS v4, red-600 is defined as --color-red-600: oklch(57.7% 0.245 27.325), which is #E7000B in hex and rgb(231, 0, 11): a medium-dark, vivid red. In Tailwind v3, red-600 was #DC2626.

red-600#E7000B

In OKLCH, red-600 has a lightness of 57.7%, chroma 0.245 and hue 27.3°. It is the most saturated shade of the red scale.

This OKLCH value lies outside sRGB. The hex #E7000B 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.8303 0.1404 0.1332).

In v3, red-600 was #DC2626. The v4 value is ΔE OK 3.0 away; v4 is more saturated.

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-600

Color codes for red-600
Tailwind v4 token--color-red-600
OKLCH (source value)oklch(57.7% 0.245 27.325)
HEX#E7000B
RGBrgb(231, 0, 11)
HSLhsl(357, 100%, 45%)
HWBhwb(357 0% 9%)
CMYK (naive, no ICC profile)cmyk(0%, 100%, 95%, 9%)
Decimal15,138,827
Display P3color(display-p3 0.8303 0.1404 0.1332)
Tailwind v3 hex#DC2626
Utility classesbg-red-600, text-red-600, border-red-600

Tailwind red scale

Contrast and accessibility

On red-600, white text has a contrast ratio of 4.76:1 and passes AA for normal text; black text reaches 4.40: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-6004.40:1FailPassFailFail34.0
White text on red-6004.76:1PassPassFailPass−75.6
Red-600 text on white4.76:1PassPassFailPass70.1
Red-600 text on black4.40:1FailPassFailFail−31.6

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #e80d17
  2. 15%
    #eb2630
  3. 25%
    #ed4048
  4. 35%
    #ef5960
  5. 45%
    #f27379
  6. 55%
    #f48c91
  7. 65%
    #f7a6aa
  8. 75%
    #f9bfc2
  9. 85%
    #fbd9da
  10. 95%
    #fef2f3

Shades (mixed with black)

  1. 5%
    #db000a
  2. 15%
    #c40009
  3. 25%
    #ad0008
  4. 35%
    #960007
  5. 45%
    #7f0006
  6. 55%
    #680005
  7. 65%
    #510004
  8. 75%
    #3a0003
  9. 85%
    #230002
  10. 95%
    #0c0001

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, red-600's complementary color is #008C9D (close to darkcyan), its analogous colors are #DD007B and #BD5A00, and its triadic partners are #00971D and #3C63FF. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#008c9d
Analogous−30°, +30°#dd007b#bd5a00
Triadic+120°, +240°#00971d#3c63ff
Split-complementary+150°, +210°#009178#0083c7

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-600 is a warm color: its hue is 357° 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
crimson#dc143c3.8
red#ff00005.3
orangered#ff45009.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
rose-600#ec003f4.4
red-500#fb2c366.1
orange-700#ca35007.0

Code snippets

Tailwind CSS
<div class="bg-red-600 text-white">...</div>
<p class="text-red-600 border-red-600">...</p>
CSS
.element {
  color: var(--color-red-600);
  background-color: oklch(57.7% 0.245 27.325);
  border-color: #e7000b;
  outline-color: rgb(231 0 11);
}
SwiftUI
import SwiftUI

extension Color {
  static let red600 = Color(red: 0.906, green: 0.000, blue: 0.043)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const red600 = Color(0xFFE7000B);
Android XML
<!-- res/values/colors.xml -->
<color name="red_600">#E7000B</color>

Frequently asked questions

What is the hex code for Tailwind red-600?
In Tailwind CSS v4, red-600 is oklch(57.7% 0.245 27.325), which converts to #E7000B (rgb(231, 0, 11)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #DC2626.
What is the difference between red-600 in Tailwind v3 and v4?
v3 used the hex #DC2626; v4 redefined the palette in OKLCH as oklch(57.7% 0.245 27.325). In v3, red-600 was #DC2626. The v4 value is ΔE OK 3.0 away; v4 is more saturated.
How do I use red-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-red-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on red-600?
White text on red-600 has a contrast ratio of 4.76:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.40:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −75.6 for white and Lc 34.0 for black.
Which CSS named color is closest to red-600?
The closest is crimson (#DC143C) at ΔE OK 3.8, followed by red and orangered.

Last reviewed by Arielton Oberek.