#5D171F#5D171F

#5D171F is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.5% C 0.101 H 18.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#5D171F
RGBrgb(93, 23, 31)
HSLhsl(353, 60%, 23%)
HSVhsv(353, 75%, 36%)
CMYKcmyk(0%, 75.3%, 66.7%, 63.5%)
CIE-LABlab(20.20, 32.16, 13.27)
CIE-LCHlch(20.20, 34.79, 22.42°)
OKLaboklab(32.46% 0.0957 0.0321)
OKLCHoklch(32.46% 0.101 18.5)
XYZxyz(5.0684, 3.0396, 1.6159)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D171F #175D55
analogous
#5D1742 #5D171F #5D3217
triadic
#5D171F #1F5D17 #171F5D
tetradic
#5D171F #425D17 #175D55 #32175D
square
#5D171F #425D17 #175D55 #32175D
split-complementary
#5D171F #175D32 #17425D
monochromatic
#190608 #2C0B0F #5D171F #8E232F #BF2F40

Accessibility & contrast

On white

13.06
#5D171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D171F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D171F#FFFFFF#000000##FFFFFF
##5D171F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271F
Deuteranopia (green-blind)
#3C361D
Tritanopia (blue-blind)
#67051A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5d171f;
/* rgb */ color: rgb(93, 23, 31);
/* oklch */ color: oklch(32.5% 0.101 18.5);
Tailwind
colors: {
  custom: {
    50: '#905a5a',
    500: '#5d171f',
    950: '#000000',
  },
}
SCSS
$custom: #5d171f;
$custom-light: #905a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d171f",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 353.143,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.10094,
    "h": 18.5
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#5D171F
secondary
#3C948A
accent
#E3D144
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5D171F

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

Preview Lab → · Contrast checker → · Palette generator →

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