#5F171F#5F171F

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

Color values

HEX#5F171F
RGBrgb(95, 23, 31)
HSLhsl(353, 61%, 23%)
HSVhsv(353, 76%, 37%)
CMYKcmyk(0%, 75.8%, 67.4%, 62.7%)
CIE-LABlab(20.62, 32.87, 13.89)
CIE-LCHlch(20.62, 35.68, 22.90°)
OKLaboklab(32.84% 0.0977 0.0334)
OKLCHoklch(32.84% 0.103 18.9)
XYZxyz(5.2736, 3.1454, 1.6255)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F171F #175F57
analogous
#5F1743 #5F171F #5F3317
triadic
#5F171F #1F5F17 #171F5F
tetradic
#5F171F #435F17 #175F57 #33175F
square
#5F171F #435F17 #175F57 #33175F
split-complementary
#5F171F #175F33 #17435F
monochromatic
#190608 #2E0B0F #5F171F #90232F #C22F3F

Accessibility & contrast

On white

12.89
#5F171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F171F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F171F#FFFFFF#000000##FFFFFF
##5F171F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f171f;
/* rgb */ color: rgb(95, 23, 31);
/* oklch */ color: oklch(32.8% 0.103 18.9);
Tailwind
colors: {
  custom: {
    50: '#925a5a',
    500: '#5f171f',
    950: '#000000',
  },
}
SCSS
$custom: #5f171f;
$custom-light: #925a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f171f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 353.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32844,
    "c": 0.10326,
    "h": 18.9
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#5F171F
secondary
#3C968C
accent
#E4D244
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F171F

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

Preview Lab → · Contrast checker → · Palette generator →

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