#5A2117#5A2117

#5A2117 is a dark, moderate red. Relative luminance 0.033; OKLCH L 33.1% C 0.087 H 32.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#5A2117
RGBrgb(90, 33, 23)
HSLhsl(9, 59%, 22%)
HSVhsv(9, 74%, 35%)
CMYKcmyk(0%, 63.3%, 74.4%, 64.7%)
CIE-LABlab(21.30, 25.52, 19.88)
CIE-LCHlch(21.30, 32.35, 37.92°)
OKLaboklab(33.12% 0.0734 0.0458)
OKLCHoklch(33.12% 0.087 32)
XYZxyz(4.9154, 3.3239, 1.1932)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2117 #17505A
analogous
#5A172F #5A2117 #5A4317
triadic
#5A2117 #175A21 #21175A
tetradic
#5A2117 #2F5A17 #17505A #43175A
square
#5A2117 #2F5A17 #17505A #43175A
split-complementary
#5A2117 #175A43 #172F5A
monochromatic
#180906 #290F0B #5A2117 #8B3323 #BB4530

Accessibility & contrast

On white

12.62
#5A2117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A2117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2117
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2117#FFFFFF#000000##FFFFFF
##5A21171.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302B16
Deuteranopia (green-blind)
#3E3815
Tritanopia (blue-blind)
#63151F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a2117;
/* rgb */ color: rgb(90, 33, 23);
/* oklch */ color: oklch(33.1% 0.087 32.0);
Tailwind
colors: {
  custom: {
    50: '#8e5f54',
    500: '#5a2117',
    950: '#000000',
  },
}
SCSS
$custom: #5a2117;
$custom-light: #8e5f54;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2117",
  "rgb": {
    "r": 90,
    "g": 33,
    "b": 23
  },
  "hsl": {
    "h": 8.955,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33123,
    "c": 0.08655,
    "h": 32
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#5A2117
secondary
#3C8491
accent
#CBE245
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0402
muted
#7E7978

Preview Lab

Preview with #5A2117

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

Preview Lab → · Contrast checker → · Palette generator →

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