#5F121F#5F121F

#5F121F is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.3% C 0.109 H 16.7°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#5F121F
RGBrgb(95, 18, 31)
HSLhsl(350, 68%, 22%)
HSVhsv(350, 81%, 37%)
CMYKcmyk(0%, 81.1%, 67.4%, 62.7%)
CIE-LABlab(19.90, 34.85, 12.96)
CIE-LCHlch(19.90, 37.19, 20.40°)
OKLaboklab(32.32% 0.1041 0.0313)
OKLCHoklch(32.32% 0.109 16.7)
XYZxyz(5.1835, 2.9652, 1.5955)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F121F #125F52
analogous
#5F1246 #5F121F #5F2C12
triadic
#5F121F #1F5F12 #121F5F
tetradic
#5F121F #465F12 #125F52 #2C125F
square
#5F121F #465F12 #125F52 #2C125F
split-complementary
#5F121F #125F2C #12465F
monochromatic
#1A0508 #2C080E #5F121F #921C30 #C62541

Accessibility & contrast

On white

13.18
#5F121F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F121F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F121F#FFFFFF#000000##FFFFFF
##5F121F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#3B361D
Tritanopia (blue-blind)
#690018
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5f121f;
/* rgb */ color: rgb(95, 18, 31);
/* oklch */ color: oklch(32.3% 0.109 16.7);
Tailwind
colors: {
  custom: {
    50: '#92585a',
    500: '#5f121f',
    950: '#000000',
  },
}
SCSS
$custom: #5f121f;
$custom-light: #92585a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f121f",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 31
  },
  "hsl": {
    "h": 349.87,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32315,
    "c": 0.10865,
    "h": 16.7
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#5F121F
secondary
#369787
accent
#EBCE3D
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F121F

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

Preview Lab → · Contrast checker → · Palette generator →

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