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.
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
| Tailwind v4 token | --color-red-400 |
|---|---|
| OKLCH (source value) | oklch(70.4% 0.191 22.216) |
| HEX | #FF6467 |
| RGB | rgb(255, 100, 103) |
| HSL | hsl(359, 100%, 70%) |
| HWB | hwb(359 39% 0%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 61%, 60%, 0%) |
| Decimal | 16,737,383 |
| Display P3 | color(display-p3 0.9335 0.4317 0.4235) |
| Tailwind v3 hex | #F87171 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on red-400 | 7.27:1 | Pass | Pass | Pass | Pass | 49.7 |
| White text on red-400 | 2.88:1 | Fail | Fail | Fail | Fail | −59.6 |
| Red-400 text on white | 2.88:1 | Fail | Fail | Fail | Fail | 54.3 |
| Red-400 text on black | 7.27:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#ff6c6f - 15%
#ff7b7e - 25%
#ff8b8d - 35%
#ff9a9c - 45%
#ffaaab - 55%
#ffb9bb - 65%
#ffc9ca - 75%
#ffd8d9 - 85%
#ffe8e8 - 95%
#fff7f7
Shades (mixed with black)
- 5%
#f25f62 - 15%
#d95558 - 25%
#bf4b4d - 35%
#a64143 - 45%
#8c3739 - 55%
#732d2e - 65%
#592324 - 75%
#40191a - 85%
#260f0f - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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.
Code snippets
<div class="bg-red-400 text-black">...</div>
<p class="text-red-400 border-red-400">...</p>.element {
color: var(--color-red-400);
background-color: oklch(70.4% 0.191 22.216);
border-color: #ff6467;
outline-color: rgb(255 100 103);
}import SwiftUI
extension Color {
static let red400 = Color(red: 1.000, green: 0.392, blue: 0.404)
}import androidx.compose.ui.graphics.Color
val Red400 = Color(0xFFFF6467)import 'package:flutter/material.dart';
const red400 = Color(0xFFFF6467);<!-- 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.