#5A2017#5A2017

#5A2017 is a dark, moderate red. Relative luminance 0.033; OKLCH L 33.0% C 0.088 H 31.1°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#5A2017
RGBrgb(90, 32, 23)
HSLhsl(8, 59%, 22%)
HSVhsv(8, 74%, 35%)
CMYKcmyk(0%, 64.4%, 74.4%, 64.7%)
CIE-LABlab(21.09, 26.06, 19.64)
CIE-LCHlch(21.09, 32.63, 37.00°)
OKLaboklab(32.97% 0.0751 0.0453)
OKLCHoklch(32.97% 0.088 31.1)
XYZxyz(4.8881, 3.2692, 1.1841)
Luminance0.0327 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2017 #17515A
analogous
#5A172F #5A2017 #5A4217
triadic
#5A2017 #175A20 #20175A
tetradic
#5A2017 #2F5A17 #17515A #42175A
square
#5A2017 #2F5A17 #17515A #42175A
split-complementary
#5A2017 #175A42 #172F5A
monochromatic
#180906 #290F0B #5A2017 #8B3123 #BB4330

Accessibility & contrast

On white

12.70
#5A2017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A2017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2017
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2017#FFFFFF#000000##FFFFFF
##5A20171.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302B16
Deuteranopia (green-blind)
#3E3715
Tritanopia (blue-blind)
#63131E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a2017;
/* rgb */ color: rgb(90, 32, 23);
/* oklch */ color: oklch(33.0% 0.088 31.1);
Tailwind
colors: {
  custom: {
    50: '#8e5e54',
    500: '#5a2017',
    950: '#000000',
  },
}
SCSS
$custom: #5a2017;
$custom-light: #8e5e54;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2017",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 23
  },
  "hsl": {
    "h": 8.06,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32968,
    "c": 0.08771,
    "h": 31.1
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#5A2017
secondary
#3C8591
accent
#CDE245
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0402
muted
#7E7978

Preview Lab

Preview with #5A2017

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

Preview Lab → · Contrast checker → · Palette generator →

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