Skip to content

Tailwind CSS v4 default palette

Tailwind red-400: #FF6467

In Tailwind CSS v4, red-400 is defined as --color-red-400: oklch(70.4% 0.191 22.216), which is #FF6467 in hex and rgb(255, 100, 103): a light, vivid red. In Tailwind v3, red-400 was #F87171.

red-400#FF6467

In OKLCH, red-400 has a lightness of 70.4%, chroma 0.191 and hue 22.2°.

This OKLCH value lies outside sRGB. The hex #FF6467 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.9335 0.4317 0.4235).

In v3, red-400 was #F87171. The v4 value is ΔE OK 2.6 away; v4 is darker and 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-400

Color codes for red-400
Tailwind v4 token--color-red-400
OKLCH (source value)oklch(70.4% 0.191 22.216)
HEX#FF6467
RGBrgb(255, 100, 103)
HSLhsl(359, 100%, 70%)
HWBhwb(359 39% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 61%, 60%, 0%)
Decimal16,737,383
Display P3color(display-p3 0.9335 0.4317 0.4235)
Tailwind v3 hex#F87171
Utility classesbg-red-400, text-red-400, border-red-400

Tailwind red scale

Contrast and accessibility

On red-400, black text has a contrast ratio of 7.27:1 and passes AAA at any text size; white text reaches 2.88: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-4007.27:1PassPassPassPass49.7
White text on red-4002.88:1FailFailFailFail−59.6
Red-400 text on white2.88:1FailFailFailFail54.3
Red-400 text on black7.27:1PassPassPassPass−47.5

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #ff6c6f
  2. 15%
    #ff7b7e
  3. 25%
    #ff8b8d
  4. 35%
    #ff9a9c
  5. 45%
    #ffaaab
  6. 55%
    #ffb9bb
  7. 65%
    #ffc9ca
  8. 75%
    #ffd8d9
  9. 85%
    #ffe8e8
  10. 95%
    #fff7f7

Shades (mixed with black)

  1. 5%
    #f25f62
  2. 15%
    #d95558
  3. 25%
    #bf4b4d
  4. 35%
    #a64143
  5. 45%
    #8c3739
  6. 55%
    #732d2e
  7. 65%
    #592324
  8. 75%
    #40191a
  9. 85%
    #260f0f
  10. 95%
    #0d0505

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, red-400's complementary color is #00B8C5 (close to lightseagreen), its analogous colors are #F464AC and #F87500, and its triadic partners are #4ABC42 and #619BFF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00b8c5
Analogous−30°, +30°#f464ac#f87500
Triadic+120°, +240°#4abc42#619bff
Split-complementary+150°, +210°#00be95#00aff5

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-400 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
tomato#ff63473.5
salmon#fa80725.3
lightcoral#f080805.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
rose-400#ff637e3.1
red-500#fb2c368.2
rose-500#ff20568.4

Code snippets

Tailwind CSS
<div class="bg-red-400 text-black">...</div>
<p class="text-red-400 border-red-400">...</p>
CSS
.element {
  color: var(--color-red-400);
  background-color: oklch(70.4% 0.191 22.216);
  border-color: #ff6467;
  outline-color: rgb(255 100 103);
}
SwiftUI
import SwiftUI

extension Color {
  static let red400 = Color(red: 1.000, green: 0.392, blue: 0.404)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const red400 = Color(0xFFFF6467);
Android XML
<!-- res/values/colors.xml -->
<color name="red_400">#FF6467</color>

Frequently asked questions

What is the hex code for Tailwind red-400?
In Tailwind CSS v4, red-400 is oklch(70.4% 0.191 22.216), which converts to #FF6467 (rgb(255, 100, 103)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #F87171.
What is the difference between red-400 in Tailwind v3 and v4?
v3 used the hex #F87171; v4 redefined the palette in OKLCH as oklch(70.4% 0.191 22.216). In v3, red-400 was #F87171. The v4 value is ΔE OK 2.6 away; v4 is darker and more saturated.
How do I use red-400 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-red-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on red-400?
White text on red-400 has a contrast ratio of 2.88:1, which fails AA even for large text under WCAG 2.2. Black text reaches 7.27:1 and passes both AA and AAA. In APCA terms that is Lc −59.6 for white and Lc 49.7 for black.
Which CSS named color is closest to red-400?
The closest is tomato (#FF6347) at ΔE OK 3.5, followed by salmon and lightcoral.

Last reviewed by Arielton Oberek.