#5A121E#5A121E

#5A121E is a dark, moderate red. Relative luminance 0.027; OKLCH L 31.3% C 0.103 H 16.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#5A121E
RGBrgb(90, 18, 30)
HSLhsl(350, 67%, 21%)
HSVhsv(350, 80%, 35%)
CMYKcmyk(0%, 80%, 66.7%, 64.7%)
CIE-LABlab(18.80, 33.09, 12.02)
CIE-LCHlch(18.80, 35.20, 19.97°)
OKLaboklab(31.3% 0.0989 0.0292)
OKLCHoklch(31.3% 0.103 16.4)
XYZxyz(4.6676, 2.7007, 1.5036)
Luminance0.0270 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A121E #125A4E
analogous
#5A1242 #5A121E #5A2A12
triadic
#5A121E #1E5A12 #121E5A
tetradic
#5A121E #425A12 #125A4E #2A125A
square
#5A121E #425A12 #125A4E #2A125A
split-complementary
#5A121E #125A2A #12425A
monochromatic
#1A0508 #27080D #5A121E #8D1C2F #C02640

Accessibility & contrast

On white

13.64
#5A121E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5A121E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A121E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A121E#FFFFFF#000000##FFFFFF
##5A121E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241E
Deuteranopia (green-blind)
#38331C
Tritanopia (blue-blind)
#630017
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a121e;
/* rgb */ color: rgb(90, 18, 30);
/* oklch */ color: oklch(31.3% 0.103 16.4);
Tailwind
colors: {
  custom: {
    50: '#8e5759',
    500: '#5a121e',
    950: '#000000',
  },
}
SCSS
$custom: #5a121e;
$custom-light: #8e5759;
$custom-dark: #000000;
JSON
{
  "hex": "#5a121e",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 30
  },
  "hsl": {
    "h": 350,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31296,
    "c": 0.10312,
    "h": 16.4
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#5A121E
secondary
#359383
accent
#EACD3E
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A121E

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

Preview Lab → · Contrast checker → · Palette generator →

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