#5F121B#5F121B

#5F121B is a dark, moderate red. Relative luminance 0.029; OKLCH L 32.2% C 0.109 H 19.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#5F121B
RGBrgb(95, 18, 27)
HSLhsl(353, 68%, 22%)
HSVhsv(353, 81%, 37%)
CMYKcmyk(0%, 81.1%, 71.6%, 62.7%)
CIE-LABlab(19.82, 34.59, 15.65)
CIE-LCHlch(19.82, 37.97, 24.34°)
OKLaboklab(32.23% 0.1023 0.0369)
OKLCHoklch(32.23% 0.109 19.8)
XYZxyz(5.1340, 2.9454, 1.3349)
Luminance0.0295 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F121B #125F56
analogous
#5F1242 #5F121B #5F3012
triadic
#5F121B #1B5F12 #121B5F
tetradic
#5F121B #425F12 #125F56 #30125F
square
#5F121B #425F12 #125F56 #30125F
split-complementary
#5F121B #125F30 #12425F
monochromatic
#1A0507 #2C080C #5F121B #921C2A #C62538

Accessibility & contrast

On white

13.22
#5F121B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5F121B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F121B
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F121B#FFFFFF#000000##FFFFFF
##5F121B1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261B
Deuteranopia (green-blind)
#3C3619
Tritanopia (blue-blind)
#690016
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5f121b;
/* rgb */ color: rgb(95, 18, 27);
/* oklch */ color: oklch(32.2% 0.109 19.8);
Tailwind
colors: {
  custom: {
    50: '#935857',
    500: '#5f121b',
    950: '#000000',
  },
}
SCSS
$custom: #5f121b;
$custom-light: #935857;
$custom-dark: #000000;
JSON
{
  "hex": "#5f121b",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 27
  },
  "hsl": {
    "h": 352.987,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32229,
    "c": 0.10874,
    "h": 19.8
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#5F121B
secondary
#36978C
accent
#EBD73D
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F121B

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

Preview Lab → · Contrast checker → · Palette generator →

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