#8A1F12#8A1F12

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

Color values

HEX#8A1F12
RGBrgb(138, 31, 18)
HSLhsl(7, 77%, 31%)
HSVhsv(7, 87%, 54%)
CMYKcmyk(0%, 77.5%, 87%, 45.9%)
CIE-LABlab(30.47, 43.97, 35.25)
CIE-LCHlch(30.47, 56.35, 38.72°)
OKLaboklab(41.75% 0.1243 0.0738)
OKLCHoklch(41.75% 0.145 30.7)
XYZxyz(11.0818, 6.4287, 1.2295)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F12 #127D8A
analogous
#8A1241 #8A1F12 #8A5B12
triadic
#8A1F12 #128A1F #1F128A
tetradic
#8A1F12 #418A12 #127D8A #5B128A
square
#8A1F12 #418A12 #127D8A #5B128A
split-complementary
#8A1F12 #128A5B #12418A
monochromatic
#1E0704 #54130B #8A1F12 #C02B19 #E44532

Accessibility & contrast

On white

9.19
#8A1F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F12
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F12#FFFFFF#000000##FFFFFF
##8A1F121.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40390F
Deuteranopia (green-blind)
#5B500B
Tritanopia (blue-blind)
#99001D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1f12;
/* rgb */ color: rgb(138, 31, 18);
/* oklch */ color: oklch(41.7% 0.144 30.7);
Tailwind
colors: {
  custom: {
    50: '#b56452',
    500: '#8a1f12',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f12;
$custom-light: #b56452;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f12",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 18
  },
  "hsl": {
    "h": 6.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41748,
    "c": 0.1445,
    "h": 30.7
  },
  "luminance": 0.06427
}

Semantic roles & 50–950 ramp

primary
#8A1F12
secondary
#39B0BF
accent
#DFF334
background
#FCF6F4
surface
#F8EBE7
border
#D1C6C3
text
#130602
muted
#827A78

Preview Lab

Preview with #8A1F12

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

Preview Lab → · Contrast checker → · Palette generator →

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