#5F1218#5F1218

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

Color values

HEX#5F1218
RGBrgb(95, 18, 24)
HSLhsl(355, 68%, 22%)
HSVhsv(355, 81%, 37%)
CMYKcmyk(0%, 81.1%, 74.7%, 62.7%)
CIE-LABlab(19.77, 34.42, 17.65)
CIE-LCHlch(19.77, 38.68, 27.15°)
OKLaboklab(32.17% 0.101 0.0408)
OKLCHoklch(32.17% 0.109 22)
XYZxyz(5.1011, 2.9322, 1.1614)
Luminance0.0293 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1218 #125F59
analogous
#5F123F #5F1218 #5F3312
triadic
#5F1218 #185F12 #12185F
tetradic
#5F1218 #3F5F12 #125F59 #33125F
square
#5F1218 #3F5F12 #125F59 #33125F
split-complementary
#5F1218 #125F33 #123F5F
monochromatic
#1A0506 #2C080B #5F1218 #921C25 #C62532

Accessibility & contrast

On white

13.24
#5F1218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1218
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1218#FFFFFF#000000##FFFFFF
##5F12181.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292518
Deuteranopia (green-blind)
#3C3615
Tritanopia (blue-blind)
#690015
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5f1218;
/* rgb */ color: rgb(95, 18, 24);
/* oklch */ color: oklch(32.2% 0.109 22.0);
Tailwind
colors: {
  custom: {
    50: '#935854',
    500: '#5f1218',
    950: '#000000',
  },
}
SCSS
$custom: #5f1218;
$custom-light: #935854;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1218",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 24
  },
  "hsl": {
    "h": 355.325,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32172,
    "c": 0.10894,
    "h": 22
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#5F1218
secondary
#369790
accent
#EBDD3D
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5F1218

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

Preview Lab → · Contrast checker → · Palette generator →

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