#5A121B#5A121B

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

Color values

HEX#5A121B
RGBrgb(90, 18, 27)
HSLhsl(353, 67%, 21%)
HSVhsv(353, 80%, 35%)
CMYKcmyk(0%, 80%, 70%, 64.7%)
CIE-LABlab(18.74, 32.88, 14.05)
CIE-LCHlch(18.74, 35.76, 23.14°)
OKLaboklab(31.23% 0.0976 0.0335)
OKLCHoklch(31.23% 0.103 19)
XYZxyz(4.6311, 2.6861, 1.3113)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A121B #125A51
analogous
#5A123F #5A121B #5A2D12
triadic
#5A121B #1B5A12 #121B5A
tetradic
#5A121B #3F5A12 #125A51 #2D125A
square
#5A121B #3F5A12 #125A51 #2D125A
split-complementary
#5A121B #125A2D #123F5A
monochromatic
#1A0508 #27080C #5A121B #8D1C2A #C0263A

Accessibility & contrast

On white

13.66
#5A121B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A121B
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A121B#FFFFFF#000000##FFFFFF
##5A121B1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241B
Deuteranopia (green-blind)
#393319
Tritanopia (blue-blind)
#630016
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a121b;
/* rgb */ color: rgb(90, 18, 27);
/* oklch */ color: oklch(31.2% 0.103 19.0);
Tailwind
colors: {
  custom: {
    50: '#8e5757',
    500: '#5a121b',
    950: '#000000',
  },
}
SCSS
$custom: #5a121b;
$custom-light: #8e5757;
$custom-dark: #000000;
JSON
{
  "hex": "#5a121b",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 27
  },
  "hsl": {
    "h": 352.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31229,
    "c": 0.10315,
    "h": 19
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#5A121B
secondary
#359387
accent
#EAD43E
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A121B

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

Preview Lab → · Contrast checker → · Palette generator →

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