#5A163F#5A163F

#5A163F is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.9% C 0.109 H 347.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#5A163F
RGBrgb(90, 22, 63)
HSLhsl(324, 61%, 22%)
HSVhsv(324, 76%, 35%)
CMYKcmyk(0%, 75.6%, 30%, 64.7%)
CIE-LABlab(20.47, 35.04, -8.83)
CIE-LCHlch(20.47, 36.13, 345.86°)
OKLaboklab(32.88% 0.1065 -0.0232)
OKLCHoklch(32.88% 0.109 347.7)
XYZxyz(5.4008, 3.1069, 5.0169)
Luminance0.0311 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A163F #165A31
analogous
#53165A #5A163F #5A161D
triadic
#5A163F #3F5A16 #163F5A
tetradic
#5A163F #5A5316 #165A31 #161D5A
square
#5A163F #5A5316 #165A31 #161D5A
split-complementary
#5A163F #1D5A16 #165A53
monochromatic
#190611 #290A1D #5A163F #8B2261 #BC2E84

Accessibility & contrast

On white

12.95
#5A163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A163F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A163F
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A163F#FFFFFF#000000##FFFFFF
##5A163F1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2A40
Deuteranopia (green-blind)
#33363D
Tritanopia (blue-blind)
#611428
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a163f;
/* rgb */ color: rgb(90, 22, 63);
/* oklch */ color: oklch(32.9% 0.109 347.7);
Tailwind
colors: {
  custom: {
    50: '#8c5a74',
    500: '#5a163f',
    950: '#000000',
  },
}
SCSS
$custom: #5a163f;
$custom-light: #8c5a74;
$custom-dark: #000000;
JSON
{
  "hex": "#5a163f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 323.824,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32877,
    "c": 0.10898,
    "h": 347.7
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#5A163F
secondary
#3B915D
accent
#E48344
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A163F

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

Preview Lab → · Contrast checker → · Palette generator →

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