#5A154A#5A154A

#5A154A is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.3% C 0.118 H 338.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#5A154A
RGBrgb(90, 21, 74)
HSLhsl(314, 62%, 22%)
HSVhsv(314, 77%, 35%)
CMYKcmyk(0%, 76.7%, 17.8%, 64.7%)
CIE-LABlab(20.85, 37.13, -15.80)
CIE-LCHlch(20.85, 40.35, 336.95°)
OKLaboklab(33.32% 0.1101 -0.0428)
OKLCHoklch(33.32% 0.118 338.8)
XYZxyz(5.7208, 3.2049, 6.7946)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A154A #155A25
analogous
#48155A #5A154A #5A1528
triadic
#5A154A #4A5A15 #154A5A
tetradic
#5A154A #5A4815 #155A25 #15285A
square
#5A154A #5A4815 #155A25 #15285A
split-complementary
#5A154A #285A15 #155A48
monochromatic
#190614 #280921 #5A154A #8C2173 #BD2C9C

Accessibility & contrast

On white

12.80
#5A154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A154A
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A154A#FFFFFF#000000##FFFFFF
##5A154A1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192B4B
Deuteranopia (green-blind)
#2F3648
Tritanopia (blue-blind)
#5F182D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a154a;
/* rgb */ color: rgb(90, 21, 74);
/* oklch */ color: oklch(33.3% 0.118 338.8);
Tailwind
colors: {
  custom: {
    50: '#8b5a7c',
    500: '#5a154a',
    950: '#000000',
  },
}
SCSS
$custom: #5a154a;
$custom-light: #8b5a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a154a",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 313.913,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33324,
    "c": 0.1181,
    "h": 338.8
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#5A154A
secondary
#39924E
accent
#E56843
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A154A

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

Preview Lab → · Contrast checker → · Palette generator →

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