#5A104A#5A104A

#5A104A is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.9% C 0.124 H 338.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#5A104A
RGBrgb(90, 16, 74)
HSLhsl(313, 70%, 21%)
HSVhsv(313, 82%, 35%)
CMYKcmyk(0%, 82.2%, 17.8%, 64.7%)
CIE-LABlab(20.20, 38.96, -16.81)
CIE-LCHlch(20.20, 42.43, 336.67°)
OKLaboklab(32.86% 0.1156 -0.0456)
OKLCHoklch(32.86% 0.124 338.5)
XYZxyz(5.6379, 3.0392, 6.7669)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A104A #105A20
analogous
#45105A #5A104A #5A1025
triadic
#5A104A #4A5A10 #104A5A
tetradic
#5A104A #5A4510 #105A20 #10255A
square
#5A104A #5A4510 #105A20 #10255A
split-complementary
#5A104A #255A10 #105A45
monochromatic
#1A0515 #26071F #5A104A #8E1975 #C2229F

Accessibility & contrast

On white

13.06
#5A104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5A104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A104A
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A104A#FFFFFF#000000##FFFFFF
##5A104A1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14294C
Deuteranopia (green-blind)
#2D3548
Tritanopia (blue-blind)
#60142C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a104a;
/* rgb */ color: rgb(90, 16, 74);
/* oklch */ color: oklch(32.9% 0.124 338.5);
Tailwind
colors: {
  custom: {
    50: '#8c587c',
    500: '#5a104a',
    950: '#000000',
  },
}
SCSS
$custom: #5a104a;
$custom-light: #8c587c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a104a",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 312.973,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32857,
    "c": 0.12427,
    "h": 338.5
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#5A104A
secondary
#339347
accent
#ED623B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A104A

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

Preview Lab → · Contrast checker → · Palette generator →

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