#5A104C#5A104C

#5A104C is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.0% C 0.126 H 337.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#5A104C
RGBrgb(90, 16, 76)
HSLhsl(311, 70%, 21%)
HSVhsv(311, 82%, 35%)
CMYKcmyk(0%, 82.2%, 15.6%, 64.7%)
CIE-LABlab(20.31, 39.28, -18.00)
CIE-LCHlch(20.31, 43.21, 335.38°)
OKLaboklab(32.97% 0.1158 -0.049)
OKLCHoklch(32.97% 0.126 337.1)
XYZxyz(5.7064, 3.0666, 7.1275)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A104C #105A1E
analogous
#43105A #5A104C #5A1027
triadic
#5A104C #4C5A10 #104C5A
tetradic
#5A104C #5A4310 #105A1E #10275A
square
#5A104C #5A4310 #105A1E #10275A
split-complementary
#5A104C #275A10 #105A43
monochromatic
#1A0516 #260720 #5A104C #8E1978 #C222A4

Accessibility & contrast

On white

13.02
#5A104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A104C
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A104C#FFFFFF#000000##FFFFFF
##5A104C1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4E
Deuteranopia (green-blind)
#2C354A
Tritanopia (blue-blind)
#5F152D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a104c;
/* rgb */ color: rgb(90, 16, 76);
/* oklch */ color: oklch(33.0% 0.126 337.1);
Tailwind
colors: {
  custom: {
    50: '#8c587e',
    500: '#5a104c',
    950: '#000000',
  },
}
SCSS
$custom: #5a104c;
$custom-light: #8c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a104c",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 311.351,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3297,
    "c": 0.12578,
    "h": 337.1
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#5A104C
secondary
#339345
accent
#ED5D3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A104C

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

Preview Lab → · Contrast checker → · Palette generator →

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