#5A163E#5A163E

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

Color values

HEX#5A163E
RGBrgb(90, 22, 62)
HSLhsl(325, 61%, 22%)
HSVhsv(325, 76%, 35%)
CMYKcmyk(0%, 75.6%, 31.1%, 64.7%)
CIE-LABlab(20.42, 34.90, -8.20)
CIE-LCHlch(20.42, 35.85, 346.78°)
OKLaboklab(32.83% 0.1062 -0.0215)
OKLCHoklch(32.83% 0.108 348.5)
XYZxyz(5.3731, 3.0959, 4.8711)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A163E #165A32
analogous
#54165A #5A163E #5A161C
triadic
#5A163E #3E5A16 #163E5A
tetradic
#5A163E #5A5416 #165A32 #161C5A
square
#5A163E #5A5416 #165A32 #161C5A
split-complementary
#5A163E #1C5A16 #165A54
monochromatic
#190611 #290A1C #5A163E #8B2260 #BC2E82

Accessibility & contrast

On white

12.97
#5A163E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A163E
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A163E#FFFFFF#000000##FFFFFF
##5A163E1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A3F
Deuteranopia (green-blind)
#33363C
Tritanopia (blue-blind)
#611327
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a163e;
/* rgb */ color: rgb(90, 22, 62);
/* oklch */ color: oklch(32.8% 0.108 348.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a73',
    500: '#5a163e',
    950: '#000000',
  },
}
SCSS
$custom: #5a163e;
$custom-light: #8c5a73;
$custom-dark: #000000;
JSON
{
  "hex": "#5a163e",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 62
  },
  "hsl": {
    "h": 324.706,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32831,
    "c": 0.10835,
    "h": 348.5
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#5A163E
secondary
#3B915E
accent
#E48644
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A163E

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

Preview Lab → · Contrast checker → · Palette generator →

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