#5F1021#5F1021

#5F1021 is a dark, moderate red. Relative luminance 0.029; OKLCH L 32.2% C 0.111 H 14.4°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#5F1021
RGBrgb(95, 16, 33)
HSLhsl(347, 71%, 22%)
HSVhsv(347, 83%, 37%)
CMYKcmyk(0%, 83.2%, 65.3%, 62.7%)
CIE-LABlab(19.70, 35.70, 11.28)
CIE-LCHlch(19.70, 37.44, 17.54°)
OKLaboklab(32.17% 0.1072 0.0276)
OKLCHoklch(32.17% 0.111 14.4)
XYZxyz(5.1797, 2.9141, 1.7283)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1021 #105F4E
analogous
#5F1049 #5F1021 #5F2710
triadic
#5F1021 #215F10 #10215F
tetradic
#5F1021 #495F10 #105F4E #27105F
square
#5F1021 #495F10 #105F4E #27105F
split-complementary
#5F1021 #105F27 #10495F
monochromatic
#1A0409 #2B070F #5F1021 #931933 #C82245

Accessibility & contrast

On white

13.27
#5F1021 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5F1021 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1021
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1021#FFFFFF#000000##FFFFFF
##5F10211.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262521
Deuteranopia (green-blind)
#3B361F
Tritanopia (blue-blind)
#690017
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5f1021;
/* rgb */ color: rgb(95, 16, 33);
/* oklch */ color: oklch(32.2% 0.111 14.4);
Tailwind
colors: {
  custom: {
    50: '#92575b',
    500: '#5f1021',
    950: '#000000',
  },
}
SCSS
$custom: #5f1021;
$custom-light: #92575b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1021",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 33
  },
  "hsl": {
    "h": 347.089,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32175,
    "c": 0.1107,
    "h": 14.4
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#5F1021
secondary
#339882
accent
#EEC73A
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0304
muted
#7E7879

Preview Lab

Preview with #5F1021

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

Preview Lab → · Contrast checker → · Palette generator →

#5F1021 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva