#5F181C#5F181C

#5F181C is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.9% C 0.102 H 21.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#5F181C
RGBrgb(95, 24, 28)
HSLhsl(357, 60%, 23%)
HSVhsv(357, 75%, 37%)
CMYKcmyk(0%, 74.7%, 70.5%, 62.7%)
CIE-LABlab(20.72, 32.24, 16.08)
CIE-LCHlch(20.72, 36.02, 26.50°)
OKLaboklab(32.9% 0.095 0.038)
OKLCHoklch(32.9% 0.102 21.8)
XYZxyz(5.2561, 3.1708, 1.4336)
Luminance0.0317 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F181C #185F5B
analogous
#5F183F #5F181C #5F3718
triadic
#5F181C #1C5F18 #181C5F
tetradic
#5F181C #3F5F18 #185F5B #37185F
square
#5F181C #3F5F18 #185F5B #37185F
split-complementary
#5F181C #185F37 #183F5F
monochromatic
#180607 #2E0C0E #5F181C #90242A #C13139

Accessibility & contrast

On white

12.85
#5F181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5F181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F181C
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F181C#FFFFFF#000000##FFFFFF
##5F181C1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B281C
Deuteranopia (green-blind)
#3D371A
Tritanopia (blue-blind)
#69041A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f181c;
/* rgb */ color: rgb(95, 24, 28);
/* oklch */ color: oklch(32.9% 0.102 21.8);
Tailwind
colors: {
  custom: {
    50: '#925a58',
    500: '#5f181c',
    950: '#000000',
  },
}
SCSS
$custom: #5f181c;
$custom-light: #925a58;
$custom-dark: #000000;
JSON
{
  "hex": "#5f181c",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 356.62,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32899,
    "c": 0.10233,
    "h": 21.8
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#5F181C
secondary
#3D9590
accent
#E3DA45
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F181C

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

Preview Lab → · Contrast checker → · Palette generator →

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