#9E1F2D#9E1F2D

#9E1F2D is a mid, vivid red. Relative luminance 0.084; OKLCH L 45.9% C 0.162 H 21.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#9E1F2D
RGBrgb(158, 31, 45)
HSLhsl(353, 67%, 37%)
HSVhsv(353, 80%, 62%)
CMYKcmyk(0%, 80.4%, 71.5%, 38%)
CIE-LABlab(34.88, 51.27, 25.26)
CIE-LCHlch(34.88, 57.15, 26.23°)
OKLaboklab(45.86% 0.1507 0.0583)
OKLCHoklch(45.86% 0.162 21.2)
XYZxyz(15.0659, 8.4409, 3.3181)
Luminance0.0844 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F2D #1F9E90
analogous
#9E1F6D #9E1F2D #9E511F
triadic
#9E1F2D #2D9E1F #1F2D9E
tetradic
#9E1F2D #6D9E1F #1F9E90 #511F9E
square
#9E1F2D #6D9E1F #1F9E90 #511F9E
split-complementary
#9E1F2D #1F9E51 #1F6D9E
monochromatic
#380B10 #6B151E #9E1F2D #D1293C #DE5968

Accessibility & contrast

On white

7.81
#9E1F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E1F2D
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F2D#FFFFFF#000000##FFFFFF
##9E1F2D1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46412C
Deuteranopia (green-blind)
#655C29
Tritanopia (blue-blind)
#AE0026
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9e1f2d;
/* rgb */ color: rgb(158, 31, 45);
/* oklch */ color: oklch(45.9% 0.162 21.2);
Tailwind
colors: {
  custom: {
    50: '#c36865',
    500: '#9e1f2d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f2d;
$custom-light: #c36865;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f2d",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 45
  },
  "hsl": {
    "h": 353.386,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45862,
    "c": 0.16154,
    "h": 21.2
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#9E1F2D
secondary
#56C2B6
accent
#EAD73E
background
#FDF6F6
surface
#FAEBEB
border
#D3C6C6
text
#140705
muted
#837A7A

Preview Lab

Preview with #9E1F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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