#5F151F#5F151F

#5F151F is a dark, moderate red. Relative luminance 0.031; OKLCH L 32.6% C 0.105 H 18.0°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#5F151F
RGBrgb(95, 21, 31)
HSLhsl(352, 64%, 23%)
HSVhsv(352, 78%, 37%)
CMYKcmyk(0%, 77.9%, 67.4%, 62.7%)
CIE-LABlab(20.32, 33.70, 13.50)
CIE-LCHlch(20.32, 36.30, 21.83°)
OKLaboklab(32.62% 0.1004 0.0325)
OKLCHoklch(32.62% 0.105 18)
XYZxyz(5.2353, 3.0689, 1.6127)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F151F #155F55
analogous
#5F1544 #5F151F #5F3015
triadic
#5F151F #1F5F15 #151F5F
tetradic
#5F151F #445F15 #155F55 #30155F
square
#5F151F #445F15 #155F55 #30155F
split-complementary
#5F151F #155F30 #15445F
monochromatic
#190608 #2D0A0F #5F151F #91202F #C32B40

Accessibility & contrast

On white

13.01
#5F151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5F151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F151F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F151F#FFFFFF#000000##FFFFFF
##5F151F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29271F
Deuteranopia (green-blind)
#3C371D
Tritanopia (blue-blind)
#690019
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f151f;
/* rgb */ color: rgb(95, 21, 31);
/* oklch */ color: oklch(32.6% 0.105 18.0);
Tailwind
colors: {
  custom: {
    50: '#92595a',
    500: '#5f151f',
    950: '#000000',
  },
}
SCSS
$custom: #5f151f;
$custom-light: #92595a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f151f",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 351.892,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32622,
    "c": 0.10549,
    "h": 18
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#5F151F
secondary
#3A968A
accent
#E7D041
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F151F

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

Preview Lab → · Contrast checker → · Palette generator →

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