#5A151A#5A151A

#5A151A is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.5% C 0.100 H 21.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#5A151A
RGBrgb(90, 21, 26)
HSLhsl(356, 62%, 22%)
HSVhsv(356, 77%, 35%)
CMYKcmyk(0%, 76.7%, 71.1%, 64.7%)
CIE-LABlab(19.16, 31.59, 15.28)
CIE-LCHlch(19.16, 35.09, 25.82°)
OKLaboklab(31.54% 0.0932 0.0361)
OKLCHoklch(31.54% 0.1 21.2)
XYZxyz(4.6716, 2.7853, 1.2687)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A151A #155A55
analogous
#5A153D #5A151A #5A3315
triadic
#5A151A #1A5A15 #151A5A
tetradic
#5A151A #3D5A15 #155A55 #33155A
square
#5A151A #3D5A15 #155A55 #33155A
split-complementary
#5A151A #155A33 #153D5A
monochromatic
#190607 #28090C #5A151A #8C2128 #BD2C37

Accessibility & contrast

On white

13.49
#5A151A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5A151A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A151A
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A151A#FFFFFF#000000##FFFFFF
##5A151A1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28251A
Deuteranopia (green-blind)
#3A3418
Tritanopia (blue-blind)
#630217
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a151a;
/* rgb */ color: rgb(90, 21, 26);
/* oklch */ color: oklch(31.5% 0.100 21.2);
Tailwind
colors: {
  custom: {
    50: '#8e5856',
    500: '#5a151a',
    950: '#000000',
  },
}
SCSS
$custom: #5a151a;
$custom-light: #8e5856;
$custom-dark: #000000;
JSON
{
  "hex": "#5a151a",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 26
  },
  "hsl": {
    "h": 355.652,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31537,
    "c": 0.09997,
    "h": 21.2
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#5A151A
secondary
#39928B
accent
#E5D943
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A151A

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

Preview Lab → · Contrast checker → · Palette generator →

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