#5A121F#5A121F

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

Color values

HEX#5A121F
RGBrgb(90, 18, 31)
HSLhsl(349, 67%, 21%)
HSVhsv(349, 80%, 35%)
CMYKcmyk(0%, 80%, 65.6%, 64.7%)
CIE-LABlab(18.83, 33.16, 11.34)
CIE-LCHlch(18.83, 35.05, 18.89°)
OKLaboklab(31.32% 0.0994 0.0277)
OKLCHoklch(31.32% 0.103 15.6)
XYZxyz(4.6806, 2.7059, 1.5719)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A121F #125A4D
analogous
#5A1243 #5A121F #5A2912
triadic
#5A121F #1F5A12 #121F5A
tetradic
#5A121F #435A12 #125A4D #29125A
square
#5A121F #435A12 #125A4D #29125A
split-complementary
#5A121F #125A29 #12435A
monochromatic
#1A0509 #27080D #5A121F #8D1C31 #C02642

Accessibility & contrast

On white

13.63
#5A121F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A121F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A121F#FFFFFF#000000##FFFFFF
##5A121F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a121f;
/* rgb */ color: rgb(90, 18, 31);
/* oklch */ color: oklch(31.3% 0.103 15.6);
Tailwind
colors: {
  custom: {
    50: '#8e575a',
    500: '#5a121f',
    950: '#000000',
  },
}
SCSS
$custom: #5a121f;
$custom-light: #8e575a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a121f",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 31
  },
  "hsl": {
    "h": 349.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3132,
    "c": 0.10315,
    "h": 15.6
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#5A121F
secondary
#359382
accent
#EACB3E
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A121F

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

Preview Lab → · Contrast checker → · Palette generator →

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