#5A154E#5A154E

#5A154E is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.5% C 0.121 H 335.9°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#5A154E
RGBrgb(90, 21, 78)
HSLhsl(310, 62%, 22%)
HSVhsv(310, 77%, 35%)
CMYKcmyk(0%, 76.7%, 13.3%, 64.7%)
CIE-LABlab(21.06, 37.79, -18.19)
CIE-LCHlch(21.06, 41.94, 334.30°)
OKLaboklab(33.55% 0.1106 -0.0496)
OKLCHoklch(33.55% 0.121 335.9)
XYZxyz(5.8598, 3.2606, 7.5270)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A154E #155A21
analogous
#44155A #5A154E #5A152C
triadic
#5A154E #4E5A15 #154E5A
tetradic
#5A154E #5A4415 #155A21 #152C5A
square
#5A154E #5A4415 #155A21 #152C5A
split-complementary
#5A154E #2C5A15 #155A44
monochromatic
#190616 #280923 #5A154E #8C2179 #BD2CA4

Accessibility & contrast

On white

12.71
#5A154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A154E
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A154E#FFFFFF#000000##FFFFFF
##5A154E1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C50
Deuteranopia (green-blind)
#2D364C
Tritanopia (blue-blind)
#5F1A2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a154e;
/* rgb */ color: rgb(90, 21, 78);
/* oklch */ color: oklch(33.5% 0.121 335.9);
Tailwind
colors: {
  custom: {
    50: '#8b5a7f',
    500: '#5a154e',
    950: '#000000',
  },
}
SCSS
$custom: #5a154e;
$custom-light: #8b5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a154e",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 310.435,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.12123,
    "h": 335.9
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#5A154E
secondary
#399249
accent
#E55F43
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A154E

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

Preview Lab → · Contrast checker → · Palette generator →

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