#5F181B#5F181B

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

Color values

HEX#5F181B
RGBrgb(95, 24, 27)
HSLhsl(357, 60%, 23%)
HSVhsv(357, 75%, 37%)
CMYKcmyk(0%, 74.7%, 71.6%, 62.7%)
CIE-LABlab(20.70, 32.17, 16.73)
CIE-LCHlch(20.70, 36.26, 27.48°)
OKLaboklab(32.88% 0.0946 0.0393)
OKLCHoklch(32.88% 0.102 22.6)
XYZxyz(5.2443, 3.1661, 1.3717)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F181B #185F5C
analogous
#5F183E #5F181B #5F3818
triadic
#5F181B #1B5F18 #181B5F
tetradic
#5F181B #3E5F18 #185F5C #38185F
square
#5F181B #3E5F18 #185F5C #38185F
split-complementary
#5F181B #185F38 #183E5F
monochromatic
#180607 #2E0C0D #5F181B #902429 #C13137

Accessibility & contrast

On white

12.86
#5F181B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F181B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F181B#FFFFFF#000000##FFFFFF
##5F181B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f181b;
/* rgb */ color: rgb(95, 24, 27);
/* oklch */ color: oklch(32.9% 0.102 22.6);
Tailwind
colors: {
  custom: {
    50: '#925a57',
    500: '#5f181b',
    950: '#000000',
  },
}
SCSS
$custom: #5f181b;
$custom-light: #925a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5f181b",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 27
  },
  "hsl": {
    "h": 357.465,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32879,
    "c": 0.10243,
    "h": 22.6
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#5F181B
secondary
#3D9592
accent
#E3DC45
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F181B

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

Preview Lab → · Contrast checker → · Palette generator →

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