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.

The studio needs JavaScript.

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.

  1. 50#FFF2F0
    White
    1.09
    Black
    19.21
  2. 100#FFE4E0
    White
    1.20
    Black
    17.42
  3. 200#FFC8C1
    White
    1.47
    Black
    14.28
  4. 300#FFA096
    White
    1.95
    Black
    10.72
  5. 400#F4756A
    White
    2.76
    Black
    7.59
  6. 500#D6584E
    White
    3.91
    Black
    5.36
  7. 600#BA3E38
    White
    5.47
    Black
    3.83
  8. 700This color#991B1B
    White
    8.31
    Black
    2.52
  9. 800#7C030B
    White
    11.20
    Black
    1.87
  10. 900#540004
    White
    15.23
    Black
    1.37
  11. 950#320001
    White
    18.48
    Black
    1.13

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.

  1. 50#FEF2F2
    White
    1.09
    Black
    19.19
  2. 100#FEE2E2
    White
    1.22
    Black
    17.19
  3. 200#FECACA
    White
    1.44
    Black
    14.51
  4. 300#FCA5A5
    White
    1.89
    Black
    11.06
  5. 400#F87171
    White
    2.76
    Black
    7.59
  6. 500#EF4444
    White
    3.76
    Black
    5.58
  7. 600#DC2626
    White
    4.82
    Black
    4.34
  8. 700#B91C1C
    White
    6.47
    Black
    3.24
  9. 800This color#991B1B
    White
    8.31
    Black
    2.52
  10. 900#7F1D1D
    White
    10.01
    Black
    2.09
  11. 950#450A0A
    White
    16.14
    Black
    1.30

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.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • 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.

Use the wider color where screens show it
.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
In CSS
/* 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.

VisionThe pairΔE2000Verdict
Normal vision#991B1B · #005F6945.7Stays distinct
Protanopia#443D19 · #555B6A26.5Stays distinct
Deuteranopia#635815 · #49526934.1Stays distinct
Tritanopia#A9001D · #00646252.1Stays distinct
Achromatopsia#4E4E4E · #5656562.8Easily 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
  • Base#991B1B
  • +120°#006621
  • +240°#2B49AB
  • Base#991B1B
  • +150°#006253
  • +210°#005A82

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-red-800: #991b1b;
}

Tailwind config

// tailwind.config.js — already built in as red-800;
// pin the v3 value explicitly like this:
module.exports = {
  theme: {
    extend: {
      colors: {
        red: { 800: '#991b1b' },
      },
    },
  },
};

Tailwind v4 theme

/* 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);
}

Design token (W3C DTCG)

{
  "color": {
    "red-800": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.6, 0.1059, 0.1059],
        "hex": "#991b1b"
      },
      "$description": "Tailwind CSS v3 red-800"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let red800 = Color(.sRGB, red: 0.600, green: 0.106, blue: 0.106, opacity: 1)
}

Jetpack Compose color

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.