#5B121F#5B121F

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

Color values

HEX#5B121F
RGBrgb(91, 18, 31)
HSLhsl(349, 67%, 21%)
HSVhsv(349, 80%, 36%)
CMYKcmyk(0%, 80.2%, 65.9%, 64.3%)
CIE-LABlab(19.04, 33.50, 11.67)
CIE-LCHlch(19.04, 35.48, 19.20°)
OKLaboklab(31.52% 0.1003 0.0284)
OKLCHoklch(31.52% 0.104 15.8)
XYZxyz(4.7785, 2.7564, 1.5765)
Luminance0.0276 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B121F #125B4E
analogous
#5B1244 #5B121F #5B2A12
triadic
#5B121F #1F5B12 #121F5B
tetradic
#5B121F #445B12 #125B4E #2A125B
square
#5B121F #445B12 #125B4E #2A125B
split-complementary
#5B121F #125B2A #12445B
monochromatic
#1A0509 #28080E #5B121F #8E1C30 #C12642

Accessibility & contrast

On white

13.54
#5B121F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B121F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B121F#FFFFFF#000000##FFFFFF
##5B121F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26251F
Deuteranopia (green-blind)
#39341D
Tritanopia (blue-blind)
#640017
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5b121f;
/* rgb */ color: rgb(91, 18, 31);
/* oklch */ color: oklch(31.5% 0.104 15.8);
Tailwind
colors: {
  custom: {
    50: '#8f575a',
    500: '#5b121f',
    950: '#000000',
  },
}
SCSS
$custom: #5b121f;
$custom-light: #8f575a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b121f",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 31
  },
  "hsl": {
    "h": 349.315,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31518,
    "c": 0.10426,
    "h": 15.8
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#5B121F
secondary
#359383
accent
#EACB3E
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5B121F

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

Preview Lab → · Contrast checker → · Palette generator →

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