#5A1012#5A1012

#5A1012 is a dark, moderate red. Relative luminance 0.026; OKLCH L 30.9% C 0.106 H 24.8°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#5A1012
RGBrgb(90, 16, 18)
HSLhsl(358, 70%, 21%)
HSVhsv(358, 82%, 35%)
CMYKcmyk(0%, 82.2%, 80%, 64.7%)
CIE-LABlab(18.31, 33.13, 19.64)
CIE-LCHlch(18.31, 38.51, 30.67°)
OKLaboklab(30.86% 0.0961 0.0444)
OKLCHoklch(30.86% 0.106 24.8)
XYZxyz(4.5114, 2.5886, 0.8343)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1012 #105A58
analogous
#5A1037 #5A1012 #5A3310
triadic
#5A1012 #125A10 #10125A
tetradic
#5A1012 #375A10 #105A58 #33105A
square
#5A1012 #375A10 #105A58 #33105A
split-complementary
#5A1012 #105A33 #10375A
monochromatic
#1A0505 #260708 #5A1012 #8E191C #C22227

Accessibility & contrast

On white

13.84
#5A1012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#5A1012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1012
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1012#FFFFFF#000000##FFFFFF
##5A10121.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262211
Deuteranopia (green-blind)
#39320F
Tritanopia (blue-blind)
#640012
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a1012;
/* rgb */ color: rgb(90, 16, 18);
/* oklch */ color: oklch(30.9% 0.106 24.8);
Tailwind
colors: {
  custom: {
    50: '#8f5650',
    500: '#5a1012',
    950: '#000000',
  },
}
SCSS
$custom: #5a1012;
$custom-light: #8f5650;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1012",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 18
  },
  "hsl": {
    "h": 358.378,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30863,
    "c": 0.10589,
    "h": 24.8
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#5A1012
secondary
#339391
accent
#EDE83B
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0302
muted
#7E7878

Preview Lab

Preview with #5A1012

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

Preview Lab → · Contrast checker → · Palette generator →

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