#5F1217#5F1217

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

Color values

HEX#5F1217
RGBrgb(95, 18, 23)
HSLhsl(356, 68%, 22%)
HSVhsv(356, 81%, 37%)
CMYKcmyk(0%, 81.1%, 75.8%, 62.7%)
CIE-LABlab(19.75, 34.36, 18.31)
CIE-LCHlch(19.75, 38.94, 28.05°)
OKLaboklab(32.16% 0.1006 0.0421)
OKLCHoklch(32.16% 0.109 22.7)
XYZxyz(5.0909, 2.9282, 1.1076)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1217 #125F5A
analogous
#5F123E #5F1217 #5F3412
triadic
#5F1217 #175F12 #12175F
tetradic
#5F1217 #3E5F12 #125F5A #34125F
square
#5F1217 #3E5F12 #125F5A #34125F
split-complementary
#5F1217 #125F34 #123E5F
monochromatic
#1A0506 #2C080B #5F1217 #921C23 #C62530

Accessibility & contrast

On white

13.25
#5F1217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5F1217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1217
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1217#FFFFFF#000000##FFFFFF
##5F12171.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292516
Deuteranopia (green-blind)
#3C3614
Tritanopia (blue-blind)
#690015
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5f1217;
/* rgb */ color: rgb(95, 18, 23);
/* oklch */ color: oklch(32.2% 0.109 22.7);
Tailwind
colors: {
  custom: {
    50: '#935753',
    500: '#5f1217',
    950: '#000000',
  },
}
SCSS
$custom: #5f1217;
$custom-light: #935753;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1217",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 23
  },
  "hsl": {
    "h": 356.104,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32155,
    "c": 0.10904,
    "h": 22.7
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#5F1217
secondary
#369791
accent
#EBE03D
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5F1217

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

Preview Lab → · Contrast checker → · Palette generator →

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