#5F0C1F#5F0C1F

#5F0C1F is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.8% C 0.114 H 14.8°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#5F0C1F
RGBrgb(95, 12, 31)
HSLhsl(346, 78%, 21%)
HSVhsv(346, 87%, 37%)
CMYKcmyk(0%, 87.4%, 67.4%, 62.7%)
CIE-LABlab(19.21, 36.82, 12.05)
CIE-LCHlch(19.21, 38.74, 18.12°)
OKLaboklab(31.8% 0.1104 0.0292)
OKLCHoklch(31.8% 0.114 14.8)
XYZxyz(5.0987, 2.7956, 1.5672)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C1F #0C5F4C
analogous
#5F0C48 #5F0C1F #5F220C
triadic
#5F0C1F #1F5F0C #0C1F5F
tetradic
#5F0C1F #485F0C #0C5F4C #220C5F
square
#5F0C1F #485F0C #0C5F4C #220C5F
split-complementary
#5F0C1F #0C5F22 #0C485F
monochromatic
#1B0309 #29050D #5F0C1F #951331 #CC1A42

Accessibility & contrast

On white

13.47
#5F0C1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5F0C1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0C1F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C1F#FFFFFF#000000##FFFFFF
##5F0C1F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25241F
Deuteranopia (green-blind)
#3A351D
Tritanopia (blue-blind)
#690015
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5f0c1f;
/* rgb */ color: rgb(95, 12, 31);
/* oklch */ color: oklch(31.8% 0.114 14.8);
Tailwind
colors: {
  custom: {
    50: '#92555a',
    500: '#5f0c1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c1f;
$custom-light: #92555a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c1f",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 31
  },
  "hsl": {
    "h": 346.265,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31798,
    "c": 0.11418,
    "h": 14.8
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#5F0C1F
secondary
#2D9981
accent
#F4C834
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0303
muted
#7E7878

Preview Lab

Preview with #5F0C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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