#5B0F21#5B0F21

#5B0F21 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.3% C 0.107 H 13.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#5B0F21
RGBrgb(91, 15, 33)
HSLhsl(346, 72%, 21%)
HSVhsv(346, 84%, 36%)
CMYKcmyk(0%, 83.5%, 63.7%, 64.3%)
CIE-LABlab(18.70, 34.74, 9.79)
CIE-LCHlch(18.70, 36.10, 15.74°)
OKLaboklab(31.28% 0.1047 0.0242)
OKLCHoklch(31.28% 0.107 13)
XYZxyz(4.7602, 2.6763, 1.7045)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B0F21 #0F5B49
analogous
#5B0F47 #5B0F21 #5B230F
triadic
#5B0F21 #215B0F #0F215B
tetradic
#5B0F21 #475B0F #0F5B49 #230F5B
square
#5B0F21 #475B0F #0F5B49 #230F5B
split-complementary
#5B0F21 #0F5B23 #0F475B
monochromatic
#1A040A #26060E #5B0F21 #901834 #C42047

Accessibility & contrast

On white

13.68
#5B0F21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5B0F21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B0F21
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B0F21#FFFFFF#000000##FFFFFF
##5B0F211.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242421
Deuteranopia (green-blind)
#38331F
Tritanopia (blue-blind)
#640017
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5b0f21;
/* rgb */ color: rgb(91, 15, 33);
/* oklch */ color: oklch(31.3% 0.107 13.0);
Tailwind
colors: {
  custom: {
    50: '#8f565b',
    500: '#5b0f21',
    950: '#000000',
  },
}
SCSS
$custom: #5b0f21;
$custom-light: #8f565b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b0f21",
  "rgb": {
    "r": 91,
    "g": 15,
    "b": 33
  },
  "hsl": {
    "h": 345.789,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3128,
    "c": 0.10748,
    "h": 13
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#5B0F21
secondary
#31957D
accent
#EEC439
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5B0F21

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

Preview Lab → · Contrast checker → · Palette generator →

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