#5F170E#5F170E

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

Color values

HEX#5F170E
RGBrgb(95, 23, 14)
HSLhsl(7, 74%, 21%)
HSVhsv(7, 85%, 37%)
CMYKcmyk(0%, 75.8%, 85.3%, 62.7%)
CIE-LABlab(20.35, 31.96, 24.50)
CIE-LCHlch(20.35, 40.27, 37.47°)
OKLaboklab(32.56% 0.0909 0.0537)
OKLCHoklch(32.56% 0.106 30.6)
XYZxyz(5.1056, 3.0782, 0.7407)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F170E #0E565F
analogous
#5F0E2E #5F170E #5F400E
triadic
#5F170E #0E5F17 #170E5F
tetradic
#5F170E #2E5F0E #0E565F #400E5F
square
#5F170E #2E5F0E #0E565F #400E5F
split-complementary
#5F170E #0E5F40 #0E2E5F
monochromatic
#1B0604 #2A0A06 #5F170E #942416 #CA311E

Accessibility & contrast

On white

13.00
#5F170E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5F170E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F170E
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F170E#FFFFFF#000000##FFFFFF
##5F170E1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C270C
Deuteranopia (green-blind)
#3E370B
Tritanopia (blue-blind)
#690016
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f170e;
/* rgb */ color: rgb(95, 23, 14);
/* oklch */ color: oklch(32.6% 0.106 30.6);
Tailwind
colors: {
  custom: {
    50: '#935a4d',
    500: '#5f170e',
    950: '#000000',
  },
}
SCSS
$custom: #5f170e;
$custom-light: #935a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f170e",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 14
  },
  "hsl": {
    "h": 6.667,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32564,
    "c": 0.10554,
    "h": 30.6
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#5F170E
secondary
#308D99
accent
#DCF137
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5F170E

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

Preview Lab → · Contrast checker → · Palette generator →

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