#5F170F#5F170F

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

Color values

HEX#5F170F
RGBrgb(95, 23, 15)
HSLhsl(6, 73%, 22%)
HSVhsv(6, 84%, 37%)
CMYKcmyk(0%, 75.8%, 84.2%, 62.7%)
CIE-LABlab(20.37, 31.99, 23.99)
CIE-LCHlch(20.37, 39.99, 36.87°)
OKLaboklab(32.58% 0.0912 0.0527)
OKLCHoklch(32.58% 0.105 30)
XYZxyz(5.1125, 3.0810, 0.7773)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F170F #0F575F
analogous
#5F0F2F #5F170F #5F3F0F
triadic
#5F170F #0F5F17 #170F5F
tetradic
#5F170F #2F5F0F #0F575F #3F0F5F
square
#5F170F #2F5F0F #0F575F #3F0F5F
split-complementary
#5F170F #0F5F3F #0F2F5F
monochromatic
#1A0604 #2A0A07 #5F170F #942417 #C93120

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F170F#FFFFFF#000000##FFFFFF
##5F170F1.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)
#2C270D
Deuteranopia (green-blind)
#3E370C
Tritanopia (blue-blind)
#690016
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f170f;
/* rgb */ color: rgb(95, 23, 15);
/* oklch */ color: oklch(32.6% 0.105 30.0);
Tailwind
colors: {
  custom: {
    50: '#935a4e',
    500: '#5f170f',
    950: '#000000',
  },
}
SCSS
$custom: #5f170f;
$custom-light: #935a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f170f",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 6,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32576,
    "c": 0.10535,
    "h": 30
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#5F170F
secondary
#328E98
accent
#DDEF38
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5F170F

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

Preview Lab → · Contrast checker → · Palette generator →

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