#5A0F17#5A0F17

#5A0F17 is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.9% C 0.106 H 20.8°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#5A0F17
RGBrgb(90, 15, 23)
HSLhsl(354, 71%, 21%)
HSVhsv(354, 83%, 35%)
CMYKcmyk(0%, 83.3%, 74.4%, 64.7%)
CIE-LABlab(18.27, 33.74, 16.26)
CIE-LCHlch(18.27, 37.46, 25.73°)
OKLaboklab(30.85% 0.0994 0.0378)
OKLCHoklch(30.85% 0.106 20.8)
XYZxyz(4.5424, 2.5779, 1.0688)
Luminance0.0258 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F17 #0F5A52
analogous
#5A0F3C #5A0F17 #5A2C0F
triadic
#5A0F17 #175A0F #0F175A
tetradic
#5A0F17 #3C5A0F #0F5A52 #2C0F5A
square
#5A0F17 #3C5A0F #0F5A52 #2C0F5A
split-complementary
#5A0F17 #0F5A2C #0F3C5A
monochromatic
#1A0407 #26060A #5A0F17 #8E1824 #C32032

Accessibility & contrast

On white

13.86
#5A0F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#5A0F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F17
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F17#FFFFFF#000000##FFFFFF
##5A0F171.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252217
Deuteranopia (green-blind)
#383215
Tritanopia (blue-blind)
#640013
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0f17;
/* rgb */ color: rgb(90, 15, 23);
/* oklch */ color: oklch(30.9% 0.106 20.8);
Tailwind
colors: {
  custom: {
    50: '#8f5553',
    500: '#5a0f17',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f17;
$custom-light: #8f5553;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f17",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 23
  },
  "hsl": {
    "h": 353.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30854,
    "c": 0.10632,
    "h": 20.8
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#5A0F17
secondary
#319489
accent
#EEDB3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5A0F17

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

Preview Lab → · Contrast checker → · Palette generator →

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