#8E172E#8E172E

#8E172E is a dark, vivid red. Relative luminance 0.066; OKLCH L 42.3% C 0.152 H 17.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#8E172E
RGBrgb(142, 23, 46)
HSLhsl(348, 72%, 32%)
HSVhsv(348, 84%, 56%)
CMYKcmyk(0%, 83.8%, 67.6%, 44.3%)
CIE-LABlab(30.79, 48.85, 18.81)
CIE-LCHlch(30.79, 52.34, 21.07°)
OKLaboklab(42.25% 0.1454 0.0447)
OKLCHoklch(42.25% 0.152 17.1)
XYZxyz(11.9562, 6.5627, 3.2214)
Luminance0.0656 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E172E #178E77
analogous
#8E176A #8E172E #8E3B17
triadic
#8E172E #2E8E17 #172E8E
tetradic
#8E172E #6A8E17 #178E77 #3B178E
square
#8E172E #6A8E17 #178E77 #3B178E
split-complementary
#8E172E #178E3B #176A8E
monochromatic
#25060C #590E1D #8E172E #C3203F #E03F5E

Accessibility & contrast

On white

9.08
#8E172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8E172E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E172E
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E172E#FFFFFF#000000##FFFFFF
##8E172E1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C392E
Deuteranopia (green-blind)
#59512A
Tritanopia (blue-blind)
#9C0021
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e172e;
/* rgb */ color: rgb(142, 23, 46);
/* oklch */ color: oklch(42.3% 0.152 17.1);
Tailwind
colors: {
  custom: {
    50: '#b66266',
    500: '#8e172e',
    950: '#000000',
  },
}
SCSS
$custom: #8e172e;
$custom-light: #b66266;
$custom-dark: #000000;
JSON
{
  "hex": "#8e172e",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 348.403,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42251,
    "c": 0.15215,
    "h": 17.1
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#8E172E
secondary
#40C0A8
accent
#EFCC39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130605
muted
#827A7A

Preview Lab

Preview with #8E172E

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

Preview Lab → · Contrast checker → · Palette generator →

#8E172E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva