#5A2018#5A2018

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

Color values

HEX#5A2018
RGBrgb(90, 32, 24)
HSLhsl(7, 58%, 22%)
HSVhsv(7, 73%, 35%)
CMYKcmyk(0%, 64.4%, 73.3%, 64.7%)
CIE-LABlab(21.11, 26.13, 19.01)
CIE-LCHlch(21.11, 32.31, 36.04°)
OKLaboklab(32.98% 0.0755 0.0441)
OKLCHoklch(32.98% 0.087 30.3)
XYZxyz(4.8983, 3.2733, 1.2378)
Luminance0.0327 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2018 #18525A
analogous
#5A1831 #5A2018 #5A4118
triadic
#5A2018 #185A20 #20185A
tetradic
#5A2018 #315A18 #18525A #41185A
square
#5A2018 #315A18 #18525A #41185A
split-complementary
#5A2018 #185A41 #18315A
monochromatic
#180906 #2A0F0B #5A2018 #8A3125 #BB4232

Accessibility & contrast

On white

12.69
#5A2018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2018
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2018#FFFFFF#000000##FFFFFF
##5A20181.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2B17
Deuteranopia (green-blind)
#3E3716
Tritanopia (blue-blind)
#63141E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a2018;
/* rgb */ color: rgb(90, 32, 24);
/* oklch */ color: oklch(33.0% 0.087 30.3);
Tailwind
colors: {
  custom: {
    50: '#8e5e55',
    500: '#5a2018',
    950: '#000000',
  },
}
SCSS
$custom: #5a2018;
$custom-light: #8e5e55;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2018",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 24
  },
  "hsl": {
    "h": 7.273,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32984,
    "c": 0.08746,
    "h": 30.3
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#5A2018
secondary
#3D8691
accent
#CEE147
background
#F9F5F4
surface
#F1E9E7
border
#CBC5C3
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A2018

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

Preview Lab → · Contrast checker → · Palette generator →

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