#9E172D#9E172D

#9E172D is a mid, vivid red. Relative luminance 0.081; OKLCH L 45.3% C 0.167 H 19.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#9E172D
RGBrgb(158, 23, 45)
HSLhsl(350, 75%, 35%)
HSVhsv(350, 85%, 62%)
CMYKcmyk(0%, 85.4%, 71.5%, 38%)
CIE-LABlab(34.14, 53.39, 24.36)
CIE-LCHlch(34.14, 58.68, 24.52°)
OKLaboklab(45.31% 0.1575 0.0563)
OKLCHoklch(45.31% 0.167 19.7)
XYZxyz(14.8823, 8.0737, 3.2569)
Luminance0.0807 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E172D #179E88
analogous
#9E1770 #9E172D #9E4417
triadic
#9E172D #2D9E17 #172D9E
tetradic
#9E172D #709E17 #179E88 #44179E
square
#9E172D #709E17 #179E88 #44179E
split-complementary
#9E172D #179E44 #17709E
monochromatic
#33070F #690F1E #9E172D #D31F3C #E54B64

Accessibility & contrast

On white

8.03
#9E172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#9E172D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E172D
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E172D#FFFFFF#000000##FFFFFF
##9E172D1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433E2D
Deuteranopia (green-blind)
#645A29
Tritanopia (blue-blind)
#AE0021
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #9e172d;
/* rgb */ color: rgb(158, 23, 45);
/* oklch */ color: oklch(45.3% 0.167 19.7);
Tailwind
colors: {
  custom: {
    50: '#c36565',
    500: '#9e172d',
    950: '#000000',
  },
}
SCSS
$custom: #9e172d;
$custom-light: #c36565;
$custom-dark: #000000;
JSON
{
  "hex": "#9e172d",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 350.222,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45308,
    "c": 0.16722,
    "h": 19.7
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#9E172D
secondary
#4AC6B2
accent
#F1D337
background
#FDF6F6
surface
#FAEBEB
border
#D3C6C6
text
#140605
muted
#837A7A

Preview Lab

Preview with #9E172D

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

Preview Lab → · Contrast checker → · Palette generator →

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