#5F171E#5F171E

#5F171E is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.8% C 0.103 H 19.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#5F171E
RGBrgb(95, 23, 30)
HSLhsl(354, 61%, 23%)
HSVhsv(354, 76%, 37%)
CMYKcmyk(0%, 75.8%, 68.4%, 62.7%)
CIE-LABlab(20.60, 32.80, 14.55)
CIE-LCHlch(20.60, 35.88, 23.92°)
OKLaboklab(32.82% 0.0973 0.0348)
OKLCHoklch(32.82% 0.103 19.7)
XYZxyz(5.2606, 3.1402, 1.5572)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F171E #175F58
analogous
#5F1742 #5F171E #5F3417
triadic
#5F171E #1E5F17 #171E5F
tetradic
#5F171E #425F17 #175F58 #34175F
square
#5F171E #425F17 #175F58 #34175F
split-complementary
#5F171E #175F34 #17425F
monochromatic
#190608 #2E0B0E #5F171E #90232E #C22F3D

Accessibility & contrast

On white

12.90
#5F171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5F171E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F171E
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F171E#FFFFFF#000000##FFFFFF
##5F171E1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B281E
Deuteranopia (green-blind)
#3D371C
Tritanopia (blue-blind)
#69031A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f171e;
/* rgb */ color: rgb(95, 23, 30);
/* oklch */ color: oklch(32.8% 0.103 19.7);
Tailwind
colors: {
  custom: {
    50: '#925a59',
    500: '#5f171e',
    950: '#000000',
  },
}
SCSS
$custom: #5f171e;
$custom-light: #925a59;
$custom-dark: #000000;
JSON
{
  "hex": "#5f171e",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 354.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32823,
    "c": 0.10331,
    "h": 19.7
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#5F171E
secondary
#3C968D
accent
#E4D544
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F171E

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

Preview Lab → · Contrast checker → · Palette generator →

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