#5B1017#5B1017

#5B1017 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.2% C 0.106 H 21.4°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#5B1017
RGBrgb(91, 16, 23)
HSLhsl(354, 70%, 21%)
HSVhsv(354, 82%, 36%)
CMYKcmyk(0%, 82.4%, 74.7%, 64.3%)
CIE-LABlab(18.62, 33.73, 16.73)
CIE-LCHlch(18.62, 37.65, 26.39°)
OKLaboklab(31.15% 0.0992 0.0388)
OKLCHoklch(31.15% 0.107 21.4)
XYZxyz(4.6549, 2.6573, 1.0783)
Luminance0.0266 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1017 #105B54
analogous
#5B103C #5B1017 #5B2E10
triadic
#5B1017 #175B10 #10175B
tetradic
#5B1017 #3C5B10 #105B54 #2E105B
square
#5B1017 #3C5B10 #105B54 #2E105B
split-complementary
#5B1017 #105B2E #103C5B
monochromatic
#1A0507 #27070A #5B1017 #8F1924 #C32231

Accessibility & contrast

On white

13.71
#5B1017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5B1017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1017
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1017#FFFFFF#000000##FFFFFF
##5B10171.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262317
Deuteranopia (green-blind)
#393315
Tritanopia (blue-blind)
#650013
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5b1017;
/* rgb */ color: rgb(91, 16, 23);
/* oklch */ color: oklch(31.2% 0.106 21.4);
Tailwind
colors: {
  custom: {
    50: '#905653',
    500: '#5b1017',
    950: '#000000',
  },
}
SCSS
$custom: #5b1017;
$custom-light: #905653;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1017",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 23
  },
  "hsl": {
    "h": 354.4,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31152,
    "c": 0.1065,
    "h": 21.4
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#5B1017
secondary
#33948B
accent
#EDDC3B
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5B1017

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

Preview Lab → · Contrast checker → · Palette generator →

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