#5A104D#5A104D

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

Color values

HEX#5A104D
RGBrgb(90, 16, 77)
HSLhsl(311, 70%, 21%)
HSVhsv(311, 82%, 35%)
CMYKcmyk(0%, 82.2%, 14.4%, 64.7%)
CIE-LABlab(20.36, 39.44, -18.60)
CIE-LCHlch(20.36, 43.61, 334.76°)
OKLaboklab(33.03% 0.1159 -0.0507)
OKLCHoklch(33.03% 0.127 336.4)
XYZxyz(5.7414, 3.0806, 7.3120)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A104D #105A1D
analogous
#42105A #5A104D #5A1028
triadic
#5A104D #4D5A10 #104D5A
tetradic
#5A104D #5A4210 #105A1D #10285A
square
#5A104D #5A4210 #105A1D #10285A
split-complementary
#5A104D #285A10 #105A42
monochromatic
#1A0516 #260721 #5A104D #8E1979 #C222A6

Accessibility & contrast

On white

13.00
#5A104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A104D
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A104D#FFFFFF#000000##FFFFFF
##5A104D1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#2C354B
Tritanopia (blue-blind)
#5F162D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a104d;
/* rgb */ color: rgb(90, 16, 77);
/* oklch */ color: oklch(33.0% 0.127 336.4);
Tailwind
colors: {
  custom: {
    50: '#8c587f',
    500: '#5a104d',
    950: '#000000',
  },
}
SCSS
$custom: #5a104d;
$custom-light: #8c587f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a104d",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 310.541,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33028,
    "c": 0.12654,
    "h": 336.4
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#5A104D
secondary
#339344
accent
#ED5A3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A104D

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

Preview Lab → · Contrast checker → · Palette generator →

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