#8A1F17#8A1F17

#8A1F17 is a dark, vivid red. Relative luminance 0.064; OKLCH L 41.8% C 0.144 H 29.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#8A1F17
RGBrgb(138, 31, 23)
HSLhsl(4, 71%, 32%)
HSVhsv(4, 83%, 54%)
CMYKcmyk(0%, 77.5%, 83.3%, 45.9%)
CIE-LABlab(30.51, 44.11, 32.58)
CIE-LCHlch(30.51, 54.84, 36.45°)
OKLaboklab(41.79% 0.1257 0.0699)
OKLCHoklch(41.79% 0.144 29.1)
XYZxyz(11.1272, 6.4469, 1.4689)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F17 #17828A
analogous
#8A1749 #8A1F17 #8A5917
triadic
#8A1F17 #178A1F #1F178A
tetradic
#8A1F17 #498A17 #17828A #59178A
square
#8A1F17 #498A17 #17828A #59178A
split-complementary
#8A1F17 #178A59 #17498A
monochromatic
#210706 #56130E #8A1F17 #BE2B20 #DF483D

Accessibility & contrast

On white

9.17
#8A1F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#8A1F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F17
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F17#FFFFFF#000000##FFFFFF
##8A1F171.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403915
Deuteranopia (green-blind)
#5A5012
Tritanopia (blue-blind)
#99001E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1f17;
/* rgb */ color: rgb(138, 31, 23);
/* oklch */ color: oklch(41.8% 0.144 29.1);
Tailwind
colors: {
  custom: {
    50: '#b56455',
    500: '#8a1f17',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f17;
$custom-light: #b56455;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f17",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 23
  },
  "hsl": {
    "h": 4.174,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41794,
    "c": 0.14379,
    "h": 29.1
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#8A1F17
secondary
#3FB5BE
accent
#E2EE3A
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8A1F17

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

Preview Lab → · Contrast checker → · Palette generator →

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