#5A101F#5A101F

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

Color values

HEX#5A101F
RGBrgb(90, 16, 31)
HSLhsl(348, 70%, 21%)
HSVhsv(348, 82%, 35%)
CMYKcmyk(0%, 82.2%, 65.6%, 64.7%)
CIE-LABlab(18.56, 33.91, 10.99)
CIE-LCHlch(18.56, 35.65, 17.96°)
OKLaboklab(31.12% 0.1018 0.0269)
OKLCHoklch(31.12% 0.105 14.8)
XYZxyz(4.6495, 2.6439, 1.5615)
Luminance0.0264 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A101F #105A4B
analogous
#5A1044 #5A101F #5A2610
triadic
#5A101F #1F5A10 #101F5A
tetradic
#5A101F #445A10 #105A4B #26105A
square
#5A101F #445A10 #105A4B #26105A
split-complementary
#5A101F #105A26 #10445A
monochromatic
#1A0509 #26070D #5A101F #8E1931 #C22243

Accessibility & contrast

On white

13.74
#5A101F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A101F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A101F#FFFFFF#000000##FFFFFF
##5A101F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231F
Deuteranopia (green-blind)
#38331D
Tritanopia (blue-blind)
#630016
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a101f;
/* rgb */ color: rgb(90, 16, 31);
/* oklch */ color: oklch(31.1% 0.105 14.8);
Tailwind
colors: {
  custom: {
    50: '#8e565a',
    500: '#5a101f',
    950: '#000000',
  },
}
SCSS
$custom: #5a101f;
$custom-light: #8e565a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a101f",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 31
  },
  "hsl": {
    "h": 347.838,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31121,
    "c": 0.10526,
    "h": 14.8
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#5A101F
secondary
#339380
accent
#EDC93B
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A101F

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

Preview Lab → · Contrast checker → · Palette generator →

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