#5A1C4E#5A1C4E

#5A1C4E is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.3% C 0.111 H 336.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5A1C4E
RGBrgb(90, 28, 78)
HSLhsl(312, 53%, 23%)
HSVhsv(312, 69%, 35%)
CMYKcmyk(0%, 68.9%, 13.3%, 64.7%)
CIE-LABlab(22.14, 34.76, -16.50)
CIE-LCHlch(22.14, 38.48, 334.61°)
OKLaboklab(34.33% 0.1017 -0.0448)
OKLCHoklch(34.33% 0.111 336.2)
XYZxyz(6.0069, 3.5547, 7.5760)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C4E #1C5A28
analogous
#471C5A #5A1C4E #5A1C2F
triadic
#5A1C4E #4E5A1C #1C4E5A
tetradic
#5A1C4E #5A471C #1C5A28 #1C2F5A
square
#5A1C4E #5A471C #1C5A28 #1C2F5A
split-complementary
#5A1C4E #2F5A1C #1C5A47
monochromatic
#170714 #2B0D26 #5A1C4E #892B76 #B7399F

Accessibility & contrast

On white

12.27
#5A1C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A1C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C4E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C4E#FFFFFF#000000##FFFFFF
##5A1C4E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2F4F
Deuteranopia (green-blind)
#31384C
Tritanopia (blue-blind)
#5F1F32
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1c4e;
/* rgb */ color: rgb(90, 28, 78);
/* oklch */ color: oklch(34.3% 0.111 336.2);
Tailwind
colors: {
  custom: {
    50: '#8b5d7f',
    500: '#5a1c4e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c4e;
$custom-light: #8b5d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c4e",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 311.613,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34333,
    "c": 0.1111,
    "h": 336.2
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#5A1C4E
secondary
#428F51
accent
#DC684C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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