#5B121C#5B121C

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

Color values

HEX#5B121C
RGBrgb(91, 18, 28)
HSLhsl(352, 67%, 21%)
HSVhsv(352, 80%, 36%)
CMYKcmyk(0%, 80.2%, 69.2%, 64.3%)
CIE-LABlab(18.98, 33.29, 13.70)
CIE-LCHlch(18.98, 36.00, 22.36°)
OKLaboklab(31.45% 0.099 0.0328)
OKLCHoklch(31.45% 0.104 18.3)
XYZxyz(4.7408, 2.7413, 1.3779)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B121C #125B51
analogous
#5B1241 #5B121C #5B2D12
triadic
#5B121C #1C5B12 #121C5B
tetradic
#5B121C #415B12 #125B51 #2D125B
square
#5B121C #415B12 #125B51 #2D125B
split-complementary
#5B121C #125B2D #12415B
monochromatic
#1A0508 #28080C #5B121C #8E1C2C #C1263B

Accessibility & contrast

On white

13.56
#5B121C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B121C
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B121C#FFFFFF#000000##FFFFFF
##5B121C1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241C
Deuteranopia (green-blind)
#39341A
Tritanopia (blue-blind)
#650016
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b121c;
/* rgb */ color: rgb(91, 18, 28);
/* oklch */ color: oklch(31.4% 0.104 18.3);
Tailwind
colors: {
  custom: {
    50: '#8f5757',
    500: '#5b121c',
    950: '#000000',
  },
}
SCSS
$custom: #5b121c;
$custom-light: #8f5757;
$custom-dark: #000000;
JSON
{
  "hex": "#5b121c",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 28
  },
  "hsl": {
    "h": 351.781,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3145,
    "c": 0.10424,
    "h": 18.3
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#5B121C
secondary
#359387
accent
#EAD23E
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5B121C

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

Preview Lab → · Contrast checker → · Palette generator →

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