#9E1F1F#9E1F1F

#9E1F1F is a mid, vivid red. Relative luminance 0.083; OKLCH L 45.7% C 0.163 H 26.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#9E1F1F
RGBrgb(158, 31, 31)
HSLhsl(0, 67%, 37%)
HSVhsv(0, 80%, 62%)
CMYKcmyk(0%, 80.4%, 80.4%, 38%)
CIE-LABlab(34.70, 50.69, 33.56)
CIE-LCHlch(34.70, 60.79, 33.50°)
OKLaboklab(45.67% 0.1457 0.0729)
OKLCHoklch(45.67% 0.163 26.6)
XYZxyz(14.8397, 8.3504, 2.1265)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F1F #1F9E9E
analogous
#9E1F5F #9E1F1F #9E5F1F
triadic
#9E1F1F #1F9E1F #1F1F9E
tetradic
#9E1F1F #5F9E1F #1F9E9E #5F1F9E
square
#9E1F1F #5F9E1F #1F9E9E #5F1F9E
split-complementary
#9E1F1F #1F9E5F #1F5F9E
monochromatic
#380B0B #6B1515 #9E1F1F #D12929 #DE5959

Accessibility & contrast

On white

7.87
#9E1F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#9E1F1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F1F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F1F#FFFFFF#000000##FFFFFF
##9E1F1F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47401D
Deuteranopia (green-blind)
#675B19
Tritanopia (blue-blind)
#AE0021
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9e1f1f;
/* rgb */ color: rgb(158, 31, 31);
/* oklch */ color: oklch(45.7% 0.163 26.6);
Tailwind
colors: {
  custom: {
    50: '#c4675b',
    500: '#9e1f1f',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f1f;
$custom-light: #c4675b;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f1f",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 31
  },
  "hsl": {
    "h": 0,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45668,
    "c": 0.16289,
    "h": 26.6
  },
  "luminance": 0.08348
}

Semantic roles & 50–950 ramp

primary
#9E1F1F
secondary
#56C2C2
accent
#EAEA3E
background
#FDF6F5
surface
#FAEBE9
border
#D3C6C5
text
#140704
muted
#837A79

Preview Lab

Preview with #9E1F1F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9E1F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva