#5A151B#5A151B

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

Color values

HEX#5A151B
RGBrgb(90, 21, 27)
HSLhsl(355, 62%, 22%)
HSVhsv(355, 77%, 35%)
CMYKcmyk(0%, 76.7%, 70%, 64.7%)
CIE-LABlab(19.18, 31.66, 14.61)
CIE-LCHlch(19.18, 34.87, 24.78°)
OKLaboklab(31.56% 0.0937 0.0348)
OKLCHoklch(31.56% 0.1 20.4)
XYZxyz(4.6829, 2.7898, 1.3286)
Luminance0.0279 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A151B #155A54
analogous
#5A153E #5A151B #5A3215
triadic
#5A151B #1B5A15 #151B5A
tetradic
#5A151B #3E5A15 #155A54 #32155A
square
#5A151B #3E5A15 #155A54 #32155A
split-complementary
#5A151B #155A32 #153E5A
monochromatic
#190607 #28090C #5A151B #8C212A #BD2C39

Accessibility & contrast

On white

13.48
#5A151B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A151B
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A151B#FFFFFF#000000##FFFFFF
##5A151B1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28251B
Deuteranopia (green-blind)
#393419
Tritanopia (blue-blind)
#630218
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a151b;
/* rgb */ color: rgb(90, 21, 27);
/* oklch */ color: oklch(31.6% 0.100 20.4);
Tailwind
colors: {
  custom: {
    50: '#8e5857',
    500: '#5a151b',
    950: '#000000',
  },
}
SCSS
$custom: #5a151b;
$custom-light: #8e5857;
$custom-dark: #000000;
JSON
{
  "hex": "#5a151b",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 27
  },
  "hsl": {
    "h": 354.783,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31557,
    "c": 0.09991,
    "h": 20.4
  },
  "luminance": 0.02789
}

Semantic roles & 50–950 ramp

primary
#5A151B
secondary
#39928A
accent
#E5D743
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5A151B

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

Preview Lab → · Contrast checker → · Palette generator →

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