Tailwind CSS v4 default palette
Tailwind red-300: #FFA2A2
In Tailwind CSS v4, red-300 is defined as --color-red-300: oklch(80.8% 0.114 19.571), which is #FFA2A2 in hex and rgb(255, 162, 162): a very light, moderately saturated pink. In Tailwind v3, red-300 was #FCA5A5.
In OKLCH, red-300 has a lightness of 80.8%, chroma 0.114 and hue 19.6°.
This OKLCH value lies outside sRGB. The hex #FFA2A2 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.9569 0.6519 0.6451).
In v3, red-300 was #FCA5A5. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; 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-300
| Tailwind v4 token | --color-red-300 |
|---|---|
| OKLCH (source value) | oklch(80.8% 0.114 19.571) |
| HEX | #FFA2A2 |
| RGB | rgb(255, 162, 162) |
| HSL | hsl(0, 100%, 82%) |
| HWB | hwb(0 64% 0%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 36%, 36%, 0%) |
| Decimal | 16,753,314 |
| Display P3 | color(display-p3 0.9569 0.6519 0.6451) |
| Tailwind v3 hex | #FCA5A5 |
| Utility classes | bg-red-300, text-red-300, border-red-300 |
Tailwind red scale
Contrast and accessibility
On red-300, black text has a contrast ratio of 10.94:1 and passes AAA at any text size; white text reaches 1.91: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-300 | 10.94:1 | Pass | Pass | Pass | Pass | 67.4 |
| White text on red-300 | 1.91:1 | Fail | Fail | Fail | Fail | −40.8 |
| Red-300 text on white | 1.91:1 | Fail | Fail | Fail | Fail | 36.5 |
| Red-300 text on black | 10.94:1 | Pass | Pass | Pass | Pass | −66.0 |
Tints and shades
Each step mixes var(--color-red-300) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-red-300), white 25%) in CSS.
Tints (mixed with white)
- 5%
#ffa7a7 - 15%
#ffb0b0 - 25%
#ffb9b9 - 35%
#ffc3c3 - 45%
#ffcccc - 55%
#ffd5d5 - 65%
#ffdede - 75%
#ffe8e8 - 85%
#fff1f1 - 95%
#fffafa
Shades (mixed with black)
- 5%
#f29a9a - 15%
#d98a8a - 25%
#bf7a7a - 35%
#a66969 - 45%
#8c5959 - 55%
#734949 - 65%
#593939 - 75%
#402929 - 85%
#261818 - 95%
#0d0808
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, red-300's complementary color is #52D6DD (close to mediumturquoise), its analogous colors are #F8A1CB and #FCAA7D, and its triadic partners are #99D28B and #94C1FF. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #52d6dd |
| Analogous | −30°, +30° | #f8a1cb#fcaa7d |
| Triadic | +120°, +240° | #99d28b#94c1ff |
| Split-complementary | +150°, +210° | #6bd8b4#69cefb |
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-300 is a warm color: its hue is 0° 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 |
|---|---|---|
| lightsalmon | #ffa07a | 5.1 |
| lightpink | #ffb6c1 | 5.2 |
| darksalmon | #e9967a | 6.9 |
Code snippets
<div class="bg-red-300 text-black">...</div>
<p class="text-red-300 border-red-300">...</p>.element {
color: var(--color-red-300);
background-color: oklch(80.8% 0.114 19.571);
border-color: #ffa2a2;
outline-color: rgb(255 162 162);
}import SwiftUI
extension Color {
static let red300 = Color(red: 1.000, green: 0.635, blue: 0.635)
}import androidx.compose.ui.graphics.Color
val Red300 = Color(0xFFFFA2A2)import 'package:flutter/material.dart';
const red300 = Color(0xFFFFA2A2);<!-- res/values/colors.xml -->
<color name="red_300">#FFA2A2</color>Frequently asked questions
- What is the hex code for Tailwind red-300?
- In Tailwind CSS v4, red-300 is oklch(80.8% 0.114 19.571), which converts to #FFA2A2 (rgb(255, 162, 162)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #FCA5A5.
- What is the difference between red-300 in Tailwind v3 and v4?
- v3 used the hex #FCA5A5; v4 redefined the palette in OKLCH as oklch(80.8% 0.114 19.571). In v3, red-300 was #FCA5A5. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use red-300 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-red-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on red-300?
- White text on red-300 has a contrast ratio of 1.91:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.94:1 and passes both AA and AAA. In APCA terms that is Lc −40.8 for white and Lc 67.4 for black.
- Which CSS named color is closest to red-300?
- The closest is lightsalmon (#FFA07A) at ΔE OK 5.1, followed by lightpink and darksalmon.
Last reviewed by Arielton Oberek.