#5B121B#5B121B

#5B121B is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.4% C 0.104 H 19.1°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#5B121B
RGBrgb(91, 18, 27)
HSLhsl(353, 67%, 21%)
HSVhsv(353, 80%, 36%)
CMYKcmyk(0%, 80.2%, 70.3%, 64.3%)
CIE-LABlab(18.96, 33.22, 14.37)
CIE-LCHlch(18.96, 36.20, 23.39°)
OKLaboklab(31.43% 0.0985 0.0342)
OKLCHoklch(31.43% 0.104 19.1)
XYZxyz(4.7290, 2.7366, 1.3159)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B121B #125B52
analogous
#5B1240 #5B121B #5B2E12
triadic
#5B121B #1B5B12 #121B5B
tetradic
#5B121B #405B12 #125B52 #2E125B
square
#5B121B #405B12 #125B52 #2E125B
split-complementary
#5B121B #125B2E #12405B
monochromatic
#1A0508 #28080C #5B121B #8E1C2A #C12639

Accessibility & contrast

On white

13.57
#5B121B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5B121B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B121B
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B121B#FFFFFF#000000##FFFFFF
##5B121B1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241B
Deuteranopia (green-blind)
#393419
Tritanopia (blue-blind)
#650016
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b121b;
/* rgb */ color: rgb(91, 18, 27);
/* oklch */ color: oklch(31.4% 0.104 19.1);
Tailwind
colors: {
  custom: {
    50: '#8f5757',
    500: '#5b121b',
    950: '#000000',
  },
}
SCSS
$custom: #5b121b;
$custom-light: #8f5757;
$custom-dark: #000000;
JSON
{
  "hex": "#5b121b",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 27
  },
  "hsl": {
    "h": 352.603,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31429,
    "c": 0.10428,
    "h": 19.1
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#5B121B
secondary
#359388
accent
#EAD53E
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5B121B

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

Preview Lab → · Contrast checker → · Palette generator →

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