#5F180C#5F180C

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

Color values

HEX#5F180C
RGBrgb(95, 24, 12)
HSLhsl(9, 78%, 21%)
HSVhsv(9, 87%, 37%)
CMYKcmyk(0%, 74.7%, 87.4%, 62.7%)
CIE-LABlab(20.49, 31.45, 25.61)
CIE-LCHlch(20.49, 40.56, 39.16°)
OKLaboklab(32.66% 0.0889 0.0558)
OKLCHoklch(32.66% 0.105 32.1)
XYZxyz(5.1129, 3.1135, 0.6795)
Luminance0.0311 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F180C #0C535F
analogous
#5F0C29 #5F180C #5F410C
triadic
#5F180C #0C5F18 #180C5F
tetradic
#5F180C #295F0C #0C535F #410C5F
square
#5F180C #295F0C #0C535F #410C5F
split-complementary
#5F180C #0C5F41 #0C295F
monochromatic
#1B0703 #290A05 #5F180C #952613 #CC331A

Accessibility & contrast

On white

12.94
#5F180C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5F180C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F180C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F180C#FFFFFF#000000##FFFFFF
##5F180C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D270A
Deuteranopia (green-blind)
#3F3709
Tritanopia (blue-blind)
#690016
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5f180c;
/* rgb */ color: rgb(95, 24, 12);
/* oklch */ color: oklch(32.7% 0.105 32.1);
Tailwind
colors: {
  custom: {
    50: '#935a4c',
    500: '#5f180c',
    950: '#000000',
  },
}
SCSS
$custom: #5f180c;
$custom-light: #935a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f180c",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 12
  },
  "hsl": {
    "h": 8.675,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32661,
    "c": 0.10493,
    "h": 32.1
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#5F180C
secondary
#2D8A99
accent
#D8F434
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5F180C

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

Preview Lab → · Contrast checker → · Palette generator →

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