Tailwind CSS v3 color
Tailwind red-800 #991B1B
Tailwind CSS v3's red-800 is #991B1B. It is a dark soft red in the red family. In OKLCH it sits at lightness 0.444, chroma 0.161 and hue 26.9°. The nearest CSS named color is brown (#A52A2A), ΔE2000 3.9 away.
- Relative luminance
- 0.0764
- OKLCH L · C · h
- 0.444 · 0.161 · 26.9
- Best text
- White 8.31:1
- Hue family
- Red
#991B1B color codes
- HEX
#991B1B- RGB
rgb(153, 27, 27)- HSL
hsl(0, 70%, 35%)- OKLCH
oklch(0.444 0.161 26.9)- OKLab
oklab(0.444 0.144 0.073)- CIELAB (D65)
L* 33.22, a* 50.20, b* 34.02- XYZ (D65)
X 13.73, Y 7.64, Z 1.79- CMYK (naive)
cmyk(0%, 82%, 82%, 40%)
CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.
Legibility
Contrast: is #991B1B accessible?
White text on it reaches 8.31:1, passing AAA. Black text fails at 2.52:1.
WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.
Open the Contrast System-
Black text on it
2.52:1
- AA fails
- AA large fails
- AAA fails
- APCA Lc +16
-
White text on it
8.31:1
- AA passes
- AA large passes
- AAA passes
- APCA Lc −91
-
As text on black
2.52:1
- AA fails
- AA large fails
- AAA fails
- APCA Lc −15
-
As text on white
8.31:1
- AA passes
- AA large passes
- AAA passes
- APCA Lc +87
Nearest versions that pass 4.5:1
-
For text on white
#991B1B 8.31:1
It already reaches 8.31:1 on white, so no change is needed.
-
For text on black
#C94C44 4.60:1
Lightening its OKLCH lightness from 0.44 to 0.58 reaches 4.60:1 on black, keeping the hue.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #991B1B live
Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.
Scale
Shades and tints of #991B1B
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #991B1B sits at step 700.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Tailwind CSS v3 red scale
The real Tailwind palette, for comparison with the computed ramp above.
Gamut
How vivid #991B1B can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.181; #991B1B uses 89% of it. Display P3, which many recent phones and laptops show, reaches 0.204 there: 13% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.161
- sRGB edge
- 0.181
- Display P3 edge
- 0.204
- Rec. 2020 edge
- 0.216
- Dominant wavelength
- 611 nm
- Excitation purity
- 78%
- Chromaticity
- x 0.5929, y 0.3299
- This color#991B1B
- Most vivid in sRGB#A0000E
- Most vivid in Display P3oklch(0.444 0.204 26.9)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #991b1b;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.6004 0 0.0472); }
}
Mixing
Mixing #991B1B
Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.
White #FFFFFF
- sRGB50%#CC8D8D
- OKLab50%#D3928A
- OKLCH50%#D3928A
Black #000000
- sRGB50%#4D0E0E
- OKLab50%#380505
- OKLCH50%#380505
Its complement #005F69
- sRGB50%#4D3D42
- OKLab50%#694B47
- OKLCH50%#5C428C
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #991b1b, white);
color: color-mix(in oklch, #991b1b 50%, white);
In use
#991B1B in an interface
A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.
Light page
- Button labelText, 4.5:18.31:1 Passes
- Link and body-size textText, 4.5:18.31:1 Passes
- Large headingLarge text, 3:18.31:1 Passes
- Icons, borders and focus ringsNon-text, 3:18.31:1 Passes
Dark page
- Button labelText, 4.5:18.31:1 Passes
- Link and body-size textText, 4.5:12.25:1 Fails
- Large headingLarge text, 3:12.25:1 Fails
- Icons, borders and focus ringsNon-text, 3:12.25:1 Fails
For text on this page, the nearest shade that passes is #D2544B 4.55:1
Color vision
How #991B1B looks with color blindness
Deuteranopia changes it most, ΔE2000 35.0; tritanopia changes it least, 3.3.
Simulated with Machado et al. (2009) at full severity, in linear light.
Simulate a whole page What each type sees-
Protanopia
No working red (long-wavelength) cones
#443D19 ΔE2000 31.6
Distinct
Reads as dark muted brown
-
Deuteranopia
No working green (medium-wavelength) cones
#635815 ΔE2000 35.0
Distinct
Reads as dark muted brown
-
Tritanopia
No working blue (short-wavelength) cones
#A9001D ΔE2000 3.3
Close match
Reads as dark vivid red
-
Achromatopsia
No cone color vision; lightness only
#4E4E4E ΔE2000 26.0
Distinct
Reads as dark gray
Pairing check
Checked against its complement, #005F69. Their lightness contrast is only 1.12:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #991B1B · #005F69 | 45.7 | Stays distinct |
| Protanopia | #443D19 · #555B6A | 26.5 | Stays distinct |
| Deuteranopia | #635815 · #495269 | 34.1 | Stays distinct |
| Tritanopia | #A9001D · #006462 | 52.1 | Stays distinct |
| Achromatopsia | #4E4E4E · #565656 | 2.8 | Easily confused |
Harmony
Color harmonies for #991B1B
Its complement is #005F69, a dark muted teal, on the cool side of the wheel.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#991B1B
- Complement#005F69
Complementary
Open in Harmony Studio- −30°#921A55
- Base#991B1B
- +30°#7F4100
Analogous
Open in Harmony Studio- Base#991B1B
- +120°#006621
- +240°#2B49AB
Triadic
Open in Harmony Studio- Base#991B1B
- +150°#006253
- +210°#005A82
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-red-800: #991b1b;
}
// tailwind.config.js — already built in as red-800;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
red: { 800: '#991b1b' },
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own red-800; this pins the v3 value. */
--color-red-800: oklch(0.444 0.161 26.9);
}
{
"color": {
"red-800": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.6, 0.1059, 0.1059],
"hex": "#991b1b"
},
"$description": "Tailwind CSS v3 red-800"
}
}
}
import SwiftUI
enum Palette {
static let red800 = Color(.sRGB, red: 0.600, green: 0.106, blue: 0.106, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Red800 = Color(0xFF991B1B)
}
Matches
The nearest match in each system
The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.
Tools
Open #991B1B in the tools
Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.