#5B121E#5B121E

#5B121E is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.5% C 0.104 H 16.7°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#5B121E
RGBrgb(91, 18, 30)
HSLhsl(350, 67%, 21%)
HSVhsv(350, 80%, 36%)
CMYKcmyk(0%, 80.2%, 67%, 64.3%)
CIE-LABlab(19.02, 33.43, 12.35)
CIE-LCHlch(19.02, 35.64, 20.27°)
OKLaboklab(31.5% 0.0999 0.0299)
OKLCHoklch(31.5% 0.104 16.7)
XYZxyz(4.7655, 2.7512, 1.5081)
Luminance0.0275 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B121E #125B4F
analogous
#5B1243 #5B121E #5B2B12
triadic
#5B121E #1E5B12 #121E5B
tetradic
#5B121E #435B12 #125B4F #2B125B
square
#5B121E #435B12 #125B4F #2B125B
split-complementary
#5B121E #125B2B #12435B
monochromatic
#1A0508 #28080D #5B121E #8E1C2F #C12640

Accessibility & contrast

On white

13.55
#5B121E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B121E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B121E#FFFFFF#000000##FFFFFF
##5B121E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241E
Deuteranopia (green-blind)
#39341C
Tritanopia (blue-blind)
#640017
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b121e;
/* rgb */ color: rgb(91, 18, 30);
/* oklch */ color: oklch(31.5% 0.104 16.7);
Tailwind
colors: {
  custom: {
    50: '#8f5759',
    500: '#5b121e',
    950: '#000000',
  },
}
SCSS
$custom: #5b121e;
$custom-light: #8f5759;
$custom-dark: #000000;
JSON
{
  "hex": "#5b121e",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 30
  },
  "hsl": {
    "h": 350.137,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31495,
    "c": 0.10424,
    "h": 16.7
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#5B121E
secondary
#359384
accent
#EACE3E
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5B121E

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

Preview Lab → · Contrast checker → · Palette generator →

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