#5A201F#5A201F

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

Color values

HEX#5A201F
RGBrgb(90, 32, 31)
HSLhsl(1, 49%, 24%)
HSVhsv(1, 66%, 35%)
CMYKcmyk(0%, 64.4%, 65.6%, 64.7%)
CIE-LABlab(21.23, 26.63, 14.48)
CIE-LCHlch(21.23, 30.31, 28.54°)
OKLaboklab(33.12% 0.0786 0.0349)
OKLCHoklch(33.12% 0.086 24)
XYZxyz(4.9807, 3.3063, 1.6719)
Luminance0.0331 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A201F #1F595A
analogous
#5A1F3B #5A201F #5A3D1F
triadic
#5A201F #1F5A20 #201F5A
tetradic
#5A201F #3B5A1F #1F595A #3D1F5A
square
#5A201F #3B5A1F #1F595A #3D1F5A
split-complementary
#5A201F #1F5A3D #1F3B5A
monochromatic
#170808 #2C100F #5A201F #88302F #B5403E

Accessibility & contrast

On white

12.64
#5A201F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A201F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A201F#FFFFFF#000000##FFFFFF
##5A201F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2B1E
Deuteranopia (green-blind)
#3D381E
Tritanopia (blue-blind)
#631520
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a201f;
/* rgb */ color: rgb(90, 32, 31);
/* oklch */ color: oklch(33.1% 0.086 24.0);
Tailwind
colors: {
  custom: {
    50: '#8d5e5a',
    500: '#5a201f',
    950: '#000000',
  },
}
SCSS
$custom: #5a201f;
$custom-light: #8d5e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a201f",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 31
  },
  "hsl": {
    "h": 1.017,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33118,
    "c": 0.08601,
    "h": 24
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#5A201F
secondary
#468D8F
accent
#D6D84F
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A201F

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

Preview Lab → · Contrast checker → · Palette generator →

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