#9E1F31#9E1F31

#9E1F31 is a mid, vivid red. Relative luminance 0.085; OKLCH L 45.9% C 0.161 H 19.4°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#9E1F31
RGBrgb(158, 31, 49)
HSLhsl(351, 67%, 37%)
HSVhsv(351, 80%, 62%)
CMYKcmyk(0%, 80.4%, 69%, 38%)
CIE-LABlab(34.95, 51.47, 22.81)
CIE-LCHlch(34.95, 56.30, 23.91°)
OKLaboklab(45.93% 0.1522 0.0535)
OKLCHoklch(45.93% 0.161 19.4)
XYZxyz(15.1466, 8.4732, 3.7431)
Luminance0.0847 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F31 #1F9E8C
analogous
#9E1F71 #9E1F31 #9E4D1F
triadic
#9E1F31 #319E1F #1F319E
tetradic
#9E1F31 #719E1F #1F9E8C #4D1F9E
square
#9E1F31 #719E1F #1F9E8C #4D1F9E
split-complementary
#9E1F31 #1F9E4D #1F719E
monochromatic
#380B11 #6B1521 #9E1F31 #D12941 #DE596C

Accessibility & contrast

On white

7.79
#9E1F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#9E1F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F31
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F31#FFFFFF#000000##FFFFFF
##9E1F311.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#454131
Deuteranopia (green-blind)
#655C2D
Tritanopia (blue-blind)
#AE0027
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9e1f31;
/* rgb */ color: rgb(158, 31, 49);
/* oklch */ color: oklch(45.9% 0.161 19.4);
Tailwind
colors: {
  custom: {
    50: '#c26869',
    500: '#9e1f31',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f31;
$custom-light: #c26869;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f31",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 351.496,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4593,
    "c": 0.16135,
    "h": 19.4
  },
  "luminance": 0.08471
}

Semantic roles & 50–950 ramp

primary
#9E1F31
secondary
#56C2B3
accent
#EAD23E
background
#FCF6F6
surface
#F9EBEB
border
#D2C6C6
text
#140706
muted
#827A7A

Preview Lab

Preview with #9E1F31

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

Preview Lab → · Contrast checker → · Palette generator →

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