#5F170C#5F170C

#5F170C is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.5% C 0.106 H 31.6°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#5F170C
RGBrgb(95, 23, 12)
HSLhsl(8, 78%, 21%)
HSVhsv(8, 87%, 37%)
CMYKcmyk(0%, 75.8%, 87.4%, 62.7%)
CIE-LABlab(20.33, 31.89, 25.44)
CIE-LCHlch(20.33, 40.79, 38.58°)
OKLaboklab(32.54% 0.0902 0.0555)
OKLCHoklch(32.54% 0.106 31.6)
XYZxyz(5.0927, 3.0730, 0.6728)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F170C #0C545F
analogous
#5F0C2A #5F170C #5F400C
triadic
#5F170C #0C5F17 #170C5F
tetradic
#5F170C #2A5F0C #0C545F #400C5F
square
#5F170C #2A5F0C #0C545F #400C5F
split-complementary
#5F170C #0C5F40 #0C2A5F
monochromatic
#1B0703 #290A05 #5F170C #952413 #CC311A

Accessibility & contrast

On white

13.01
#5F170C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5F170C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F170C
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F170C#FFFFFF#000000##FFFFFF
##5F170C1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C270A
Deuteranopia (green-blind)
#3E3708
Tritanopia (blue-blind)
#690015
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f170c;
/* rgb */ color: rgb(95, 23, 12);
/* oklch */ color: oklch(32.5% 0.106 31.6);
Tailwind
colors: {
  custom: {
    50: '#935a4c',
    500: '#5f170c',
    950: '#000000',
  },
}
SCSS
$custom: #5f170c;
$custom-light: #935a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f170c",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 12
  },
  "hsl": {
    "h": 7.952,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32542,
    "c": 0.1059,
    "h": 31.6
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#5F170C
secondary
#2D8B99
accent
#DBF434
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5F170C

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

Preview Lab → · Contrast checker → · Palette generator →

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