#5A1217#5A1217

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

Color values

HEX#5A1217
RGBrgb(90, 18, 23)
HSLhsl(356, 67%, 21%)
HSVhsv(356, 80%, 35%)
CMYKcmyk(0%, 80%, 74.4%, 64.7%)
CIE-LABlab(18.67, 32.63, 16.74)
CIE-LCHlch(18.67, 36.68, 27.16°)
OKLaboklab(31.15% 0.0958 0.0389)
OKLCHoklch(31.15% 0.103 22.1)
XYZxyz(4.5879, 2.6688, 1.0840)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1217 #125A55
analogous
#5A123B #5A1217 #5A3112
triadic
#5A1217 #175A12 #12175A
tetradic
#5A1217 #3B5A12 #125A55 #31125A
square
#5A1217 #3B5A12 #125A55 #31125A
split-complementary
#5A1217 #125A31 #123B5A
monochromatic
#1A0507 #27080A #5A1217 #8D1C24 #C02631

Accessibility & contrast

On white

13.69
#5A1217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5A1217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1217
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1217#FFFFFF#000000##FFFFFF
##5A12171.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272417
Deuteranopia (green-blind)
#393315
Tritanopia (blue-blind)
#640015
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a1217;
/* rgb */ color: rgb(90, 18, 23);
/* oklch */ color: oklch(31.1% 0.103 22.1);
Tailwind
colors: {
  custom: {
    50: '#8f5753',
    500: '#5a1217',
    950: '#000000',
  },
}
SCSS
$custom: #5a1217;
$custom-light: #8f5753;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1217",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 23
  },
  "hsl": {
    "h": 355.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31149,
    "c": 0.10341,
    "h": 22.1
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#5A1217
secondary
#35938C
accent
#EADE3E
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #5A1217

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

Preview Lab → · Contrast checker → · Palette generator →

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