#5A104B#5A104B

#5A104B is a dark, vivid pink. Relative luminance 0.031; OKLCH L 32.9% C 0.125 H 337.8°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#5A104B
RGBrgb(90, 16, 75)
HSLhsl(312, 70%, 21%)
HSVhsv(312, 82%, 35%)
CMYKcmyk(0%, 82.2%, 16.7%, 64.7%)
CIE-LABlab(20.25, 39.12, -17.41)
CIE-LCHlch(20.25, 42.82, 336.01°)
OKLaboklab(32.91% 0.1157 -0.0473)
OKLCHoklch(32.91% 0.125 337.8)
XYZxyz(5.6719, 3.0528, 6.9458)
Luminance0.0305 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A104B #105A1F
analogous
#44105A #5A104B #5A1026
triadic
#5A104B #4B5A10 #104B5A
tetradic
#5A104B #5A4410 #105A1F #10265A
square
#5A104B #5A4410 #105A1F #10265A
split-complementary
#5A104B #265A10 #105A44
monochromatic
#1A0516 #260720 #5A104B #8E1976 #C222A2

Accessibility & contrast

On white

13.04
#5A104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A104B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A104B#FFFFFF#000000##FFFFFF
##5A104B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4D
Deuteranopia (green-blind)
#2D3549
Tritanopia (blue-blind)
#5F142C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a104b;
/* rgb */ color: rgb(90, 16, 75);
/* oklch */ color: oklch(32.9% 0.125 337.8);
Tailwind
colors: {
  custom: {
    50: '#8c587d',
    500: '#5a104b',
    950: '#000000',
  },
}
SCSS
$custom: #5a104b;
$custom-light: #8c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a104b",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 312.162,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32913,
    "c": 0.12502,
    "h": 337.8
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#5A104B
secondary
#339346
accent
#ED5F3B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A104B

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

Preview Lab → · Contrast checker → · Palette generator →

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