#5A163D#5A163D

#5A163D is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.8% C 0.108 H 349.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#5A163D
RGBrgb(90, 22, 61)
HSLhsl(326, 61%, 22%)
HSVhsv(326, 76%, 35%)
CMYKcmyk(0%, 75.6%, 32.2%, 64.7%)
CIE-LABlab(20.38, 34.76, -7.57)
CIE-LCHlch(20.38, 35.57, 347.71°)
OKLaboklab(32.78% 0.1059 -0.0198)
OKLCHoklch(32.78% 0.108 349.4)
XYZxyz(5.3459, 3.0850, 4.7279)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A163D #165A33
analogous
#55165A #5A163D #5A161B
triadic
#5A163D #3D5A16 #163D5A
tetradic
#5A163D #5A5516 #165A33 #161B5A
square
#5A163D #5A5516 #165A33 #161B5A
split-complementary
#5A163D #1B5A16 #165A55
monochromatic
#190611 #290A1C #5A163D #8B225E #BC2E80

Accessibility & contrast

On white

12.99
#5A163D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A163D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A163D#FFFFFF#000000##FFFFFF
##5A163D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20293E
Deuteranopia (green-blind)
#34363B
Tritanopia (blue-blind)
#611327
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a163d;
/* rgb */ color: rgb(90, 22, 61);
/* oklch */ color: oklch(32.8% 0.108 349.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a72',
    500: '#5a163d',
    950: '#000000',
  },
}
SCSS
$custom: #5a163d;
$custom-light: #8c5a72;
$custom-dark: #000000;
JSON
{
  "hex": "#5a163d",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 61
  },
  "hsl": {
    "h": 325.588,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32785,
    "c": 0.10774,
    "h": 349.4
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#5A163D
secondary
#3B9160
accent
#E48844
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A163D

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

Preview Lab → · Contrast checker → · Palette generator →

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