#5A1117#5A1117

#5A1117 is a dark, moderate red. Relative luminance 0.026; OKLCH L 31.0% C 0.104 H 21.7°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#5A1117
RGBrgb(90, 17, 23)
HSLhsl(355, 68%, 21%)
HSVhsv(355, 81%, 35%)
CMYKcmyk(0%, 81.1%, 74.4%, 64.7%)
CIE-LABlab(18.53, 33.02, 16.58)
CIE-LCHlch(18.53, 36.94, 26.66°)
OKLaboklab(31.05% 0.097 0.0385)
OKLCHoklch(31.05% 0.104 21.7)
XYZxyz(4.5721, 2.6371, 1.0787)
Luminance0.0264 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1117 #115A54
analogous
#5A113B #5A1117 #5A2F11
triadic
#5A1117 #175A11 #11175A
tetradic
#5A1117 #3B5A11 #115A54 #2F115A
square
#5A1117 #3B5A11 #115A54 #2F115A
split-complementary
#5A1117 #115A2F #113B5A
monochromatic
#1A0507 #27070A #5A1117 #8D1B24 #C12431

Accessibility & contrast

On white

13.75
#5A1117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1117
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1117#FFFFFF#000000##FFFFFF
##5A11171.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1117;
/* rgb */ color: rgb(90, 17, 23);
/* oklch */ color: oklch(31.0% 0.104 21.7);
Tailwind
colors: {
  custom: {
    50: '#8f5653',
    500: '#5a1117',
    950: '#000000',
  },
}
SCSS
$custom: #5a1117;
$custom-light: #8f5653;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1117",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 23
  },
  "hsl": {
    "h": 355.068,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.10441,
    "h": 21.7
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#5A1117
secondary
#34938B
accent
#EBDD3D
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0D0302
muted
#7E7878

Preview Lab

Preview with #5A1117

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

Preview Lab → · Contrast checker → · Palette generator →

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