#5A1D4E#5A1D4E

#5A1D4E is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.5% C 0.110 H 336.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5A1D4E
RGBrgb(90, 29, 78)
HSLhsl(312, 51%, 23%)
HSVhsv(312, 68%, 35%)
CMYKcmyk(0%, 67.8%, 13.3%, 64.7%)
CIE-LABlab(22.31, 34.29, -16.23)
CIE-LCHlch(22.31, 37.94, 334.67°)
OKLaboklab(34.46% 0.1003 -0.0441)
OKLCHoklch(34.46% 0.11 336.3)
XYZxyz(6.0310, 3.6029, 7.5840)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D4E #1D5A29
analogous
#471D5A #5A1D4E #5A1D2F
triadic
#5A1D4E #4E5A1D #1D4E5A
tetradic
#5A1D4E #5A471D #1D5A29 #1D2F5A
square
#5A1D4E #5A471D #1D5A29 #1D2F5A
split-complementary
#5A1D4E #2F5A1D #1D5A47
monochromatic
#170714 #2C0E26 #5A1D4E #882C76 #B73B9E

Accessibility & contrast

On white

12.21
#5A1D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A1D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D4E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D4E#FFFFFF#000000##FFFFFF
##5A1D4E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2F4F
Deuteranopia (green-blind)
#31394C
Tritanopia (blue-blind)
#5F2032
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1d4e;
/* rgb */ color: rgb(90, 29, 78);
/* oklch */ color: oklch(34.5% 0.110 336.3);
Tailwind
colors: {
  custom: {
    50: '#8b5e7f',
    500: '#5a1d4e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d4e;
$custom-light: #8b5e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d4e",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 311.803,
    "s": 51.261,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34459,
    "c": 0.10952,
    "h": 336.3
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#5A1D4E
secondary
#448F52
accent
#DB694D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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