#5A1213#5A1213

#5A1213 is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.1% C 0.104 H 25.0°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#5A1213
RGBrgb(90, 18, 19)
HSLhsl(359, 67%, 21%)
HSVhsv(359, 80%, 35%)
CMYKcmyk(0%, 80%, 78.9%, 64.7%)
CIE-LABlab(18.60, 32.42, 19.36)
CIE-LCHlch(18.60, 37.76, 30.85°)
OKLaboklab(31.08% 0.0941 0.0439)
OKLCHoklch(31.08% 0.104 25)
XYZxyz(4.5508, 2.6540, 0.8886)
Luminance0.0265 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1213 #125A59
analogous
#5A1237 #5A1213 #5A3512
triadic
#5A1213 #135A12 #12135A
tetradic
#5A1213 #375A12 #125A59 #35125A
square
#5A1213 #375A12 #125A59 #35125A
split-complementary
#5A1213 #125A35 #12375A
monochromatic
#1A0505 #270808 #5A1213 #8D1C1E #C02629

Accessibility & contrast

On white

13.72
#5A1213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5A1213 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1213
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1213#FFFFFF#000000##FFFFFF
##5A12131.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272312
Deuteranopia (green-blind)
#393310
Tritanopia (blue-blind)
#640013
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a1213;
/* rgb */ color: rgb(90, 18, 19);
/* oklch */ color: oklch(31.1% 0.104 25.0);
Tailwind
colors: {
  custom: {
    50: '#8f5750',
    500: '#5a1213',
    950: '#000000',
  },
}
SCSS
$custom: #5a1213;
$custom-light: #8f5750;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1213",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 19
  },
  "hsl": {
    "h": 359.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31081,
    "c": 0.10386,
    "h": 25
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#5A1213
secondary
#359391
accent
#EAE73E
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5A1213

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

Preview Lab → · Contrast checker → · Palette generator →

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