#5F170D#5F170D

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

Color values

HEX#5F170D
RGBrgb(95, 23, 13)
HSLhsl(7, 76%, 21%)
HSVhsv(7, 86%, 37%)
CMYKcmyk(0%, 75.8%, 86.3%, 62.7%)
CIE-LABlab(20.34, 31.92, 24.98)
CIE-LCHlch(20.34, 40.53, 38.04°)
OKLaboklab(32.55% 0.0905 0.0546)
OKLCHoklch(32.55% 0.106 31.1)
XYZxyz(5.0990, 3.0755, 0.7058)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F170D #0D555F
analogous
#5F0D2C #5F170D #5F400D
triadic
#5F170D #0D5F17 #170D5F
tetradic
#5F170D #2C5F0D #0D555F #400D5F
square
#5F170D #2C5F0D #0D555F #400D5F
split-complementary
#5F170D #0D5F40 #0D2C5F
monochromatic
#1B0704 #290A06 #5F170D #952414 #CB311C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F170D#FFFFFF#000000##FFFFFF
##5F170D1.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)
#2C270B
Deuteranopia (green-blind)
#3E370A
Tritanopia (blue-blind)
#690015
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f170d;
/* rgb */ color: rgb(95, 23, 13);
/* oklch */ color: oklch(32.6% 0.106 31.1);
Tailwind
colors: {
  custom: {
    50: '#935a4d',
    500: '#5f170d',
    950: '#000000',
  },
}
SCSS
$custom: #5f170d;
$custom-light: #935a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f170d",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 13
  },
  "hsl": {
    "h": 7.317,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32553,
    "c": 0.10572,
    "h": 31.1
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#5F170D
secondary
#2F8C99
accent
#DBF335
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5F170D

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

Preview Lab → · Contrast checker → · Palette generator →

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