#5A101C#5A101C

#5A101C is a dark, moderate red. Relative luminance 0.026; OKLCH L 31.1% C 0.105 H 17.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#5A101C
RGBrgb(90, 16, 28)
HSLhsl(350, 70%, 21%)
HSVhsv(350, 82%, 35%)
CMYKcmyk(0%, 82.2%, 68.9%, 64.7%)
CIE-LABlab(18.49, 33.70, 13.03)
CIE-LCHlch(18.49, 36.13, 21.14°)
OKLaboklab(31.05% 0.1004 0.0313)
OKLCHoklch(31.05% 0.105 17.3)
XYZxyz(4.6118, 2.6288, 1.3629)
Luminance0.0263 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A101C #105A4E
analogous
#5A1041 #5A101C #5A2910
triadic
#5A101C #1C5A10 #101C5A
tetradic
#5A101C #415A10 #105A4E #29105A
square
#5A101C #415A10 #105A4E #29105A
split-complementary
#5A101C #105A29 #10415A
monochromatic
#1A0508 #26070C #5A101C #8E192C #C2223C

Accessibility & contrast

On white

13.77
#5A101C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A101C
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A101C#FFFFFF#000000##FFFFFF
##5A101C1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231C
Deuteranopia (green-blind)
#38331A
Tritanopia (blue-blind)
#630015
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a101c;
/* rgb */ color: rgb(90, 16, 28);
/* oklch */ color: oklch(31.1% 0.105 17.3);
Tailwind
colors: {
  custom: {
    50: '#8e5657',
    500: '#5a101c',
    950: '#000000',
  },
}
SCSS
$custom: #5a101c;
$custom-light: #8e5657;
$custom-dark: #000000;
JSON
{
  "hex": "#5a101c",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 28
  },
  "hsl": {
    "h": 350.27,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31051,
    "c": 0.10518,
    "h": 17.3
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#5A101C
secondary
#339384
accent
#EDD03B
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A101C

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

Preview Lab → · Contrast checker → · Palette generator →

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