#5A154C#5A154C

#5A154C is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.4% C 0.120 H 337.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#5A154C
RGBrgb(90, 21, 76)
HSLhsl(312, 62%, 22%)
HSVhsv(312, 77%, 35%)
CMYKcmyk(0%, 76.7%, 15.6%, 64.7%)
CIE-LABlab(20.95, 37.45, -17.00)
CIE-LCHlch(20.95, 41.13, 335.59°)
OKLaboklab(33.43% 0.1104 -0.0462)
OKLCHoklch(33.43% 0.12 337.3)
XYZxyz(5.7892, 3.2323, 7.1551)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A154C #155A23
analogous
#46155A #5A154C #5A152A
triadic
#5A154C #4C5A15 #154C5A
tetradic
#5A154C #5A4615 #155A23 #152A5A
square
#5A154C #5A4615 #155A23 #152A5A
split-complementary
#5A154C #2A5A15 #155A46
monochromatic
#190615 #280922 #5A154C #8C2176 #BD2CA0

Accessibility & contrast

On white

12.76
#5A154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A154C
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A154C#FFFFFF#000000##FFFFFF
##5A154C1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4E
Deuteranopia (green-blind)
#2E364A
Tritanopia (blue-blind)
#5F192E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a154c;
/* rgb */ color: rgb(90, 21, 76);
/* oklch */ color: oklch(33.4% 0.120 337.3);
Tailwind
colors: {
  custom: {
    50: '#8b5a7e',
    500: '#5a154c',
    950: '#000000',
  },
}
SCSS
$custom: #5a154c;
$custom-light: #8b5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a154c",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 312.174,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33434,
    "c": 0.11964,
    "h": 337.3
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#5A154C
secondary
#39924B
accent
#E56443
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A154C

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

Preview Lab → · Contrast checker → · Palette generator →

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