#5A1A4E#5A1A4E

#5A1A4E is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.1% C 0.114 H 336.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#5A1A4E
RGBrgb(90, 26, 78)
HSLhsl(311, 55%, 23%)
HSVhsv(311, 71%, 35%)
CMYKcmyk(0%, 71.1%, 13.3%, 64.7%)
CIE-LABlab(21.81, 35.68, -17.01)
CIE-LCHlch(21.81, 39.53, 334.50°)
OKLaboklab(34.09% 0.1044 -0.0463)
OKLCHoklch(34.09% 0.114 336.1)
XYZxyz(5.9611, 3.4630, 7.5607)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A4E #1A5A26
analogous
#461A5A #5A1A4E #5A1A2E
triadic
#5A1A4E #4E5A1A #1A4E5A
tetradic
#5A1A4E #5A461A #1A5A26 #1A2E5A
square
#5A1A4E #5A461A #1A5A26 #1A2E5A
split-complementary
#5A1A4E #2E5A1A #1A5A46
monochromatic
#180715 #2B0C25 #5A1A4E #892877 #B935A0

Accessibility & contrast

On white

12.41
#5A1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5A1A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A4E
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A4E#FFFFFF#000000##FFFFFF
##5A1A4E1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E50
Deuteranopia (green-blind)
#30384C
Tritanopia (blue-blind)
#5F1E31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1a4e;
/* rgb */ color: rgb(90, 26, 78);
/* oklch */ color: oklch(34.1% 0.114 336.1);
Tailwind
colors: {
  custom: {
    50: '#8b5c7f',
    500: '#5a1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a4e;
$custom-light: #8b5c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a4e",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 311.25,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34092,
    "c": 0.11418,
    "h": 336.1
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#5A1A4E
secondary
#40904F
accent
#DF6549
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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