#5A121C#5A121C

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

Color values

HEX#5A121C
RGBrgb(90, 18, 28)
HSLhsl(352, 67%, 21%)
HSVhsv(352, 80%, 35%)
CMYKcmyk(0%, 80%, 68.9%, 64.7%)
CIE-LABlab(18.76, 32.95, 13.38)
CIE-LCHlch(18.76, 35.56, 22.10°)
OKLaboklab(31.25% 0.098 0.0321)
OKLCHoklch(31.25% 0.103 18.1)
XYZxyz(4.6428, 2.6908, 1.3733)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A121C #125A50
analogous
#5A1240 #5A121C #5A2C12
triadic
#5A121C #1C5A12 #121C5A
tetradic
#5A121C #405A12 #125A50 #2C125A
square
#5A121C #405A12 #125A50 #2C125A
split-complementary
#5A121C #125A2C #12405A
monochromatic
#1A0508 #27080C #5A121C #8D1C2C #C0263C

Accessibility & contrast

On white

13.65
#5A121C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A121C
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A121C#FFFFFF#000000##FFFFFF
##5A121C1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a121c;
/* rgb */ color: rgb(90, 18, 28);
/* oklch */ color: oklch(31.3% 0.103 18.1);
Tailwind
colors: {
  custom: {
    50: '#8e5757',
    500: '#5a121c',
    950: '#000000',
  },
}
SCSS
$custom: #5a121c;
$custom-light: #8e5757;
$custom-dark: #000000;
JSON
{
  "hex": "#5a121c",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 28
  },
  "hsl": {
    "h": 351.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31251,
    "c": 0.10313,
    "h": 18.1
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#5A121C
secondary
#359386
accent
#EAD23E
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A121C

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

Preview Lab → · Contrast checker → · Palette generator →

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