#5A154D#5A154D

#5A154D is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.5% C 0.120 H 336.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5A154D
RGBrgb(90, 21, 77)
HSLhsl(311, 62%, 22%)
HSVhsv(311, 77%, 35%)
CMYKcmyk(0%, 76.7%, 14.4%, 64.7%)
CIE-LABlab(21.00, 37.62, -17.59)
CIE-LCHlch(21.00, 41.53, 334.94°)
OKLaboklab(33.49% 0.1105 -0.0479)
OKLCHoklch(33.49% 0.12 336.6)
XYZxyz(5.8243, 3.2463, 7.3396)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A154D #155A22
analogous
#45155A #5A154D #5A152B
triadic
#5A154D #4D5A15 #154D5A
tetradic
#5A154D #5A4515 #155A22 #152B5A
square
#5A154D #5A4515 #155A22 #152B5A
split-complementary
#5A154D #2B5A15 #155A45
monochromatic
#190615 #280923 #5A154D #8C2177 #BD2CA2

Accessibility & contrast

On white

12.73
#5A154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A154D
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A154D#FFFFFF#000000##FFFFFF
##5A154D1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C4F
Deuteranopia (green-blind)
#2E364B
Tritanopia (blue-blind)
#5F192F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a154d;
/* rgb */ color: rgb(90, 21, 77);
/* oklch */ color: oklch(33.5% 0.120 336.6);
Tailwind
colors: {
  custom: {
    50: '#8b5a7f',
    500: '#5a154d',
    950: '#000000',
  },
}
SCSS
$custom: #5a154d;
$custom-light: #8b5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a154d",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 311.304,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3349,
    "c": 0.12044,
    "h": 336.6
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#5A154D
secondary
#39924A
accent
#E56143
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A154D

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

Preview Lab → · Contrast checker → · Palette generator →

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