#5A184A#5A184A

#5A184A is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.6% C 0.114 H 339.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#5A184A
RGBrgb(90, 24, 74)
HSLhsl(315, 58%, 22%)
HSVhsv(315, 73%, 35%)
CMYKcmyk(0%, 73.3%, 17.8%, 64.7%)
CIE-LABlab(21.29, 35.88, -15.11)
CIE-LCHlch(21.29, 38.94, 337.16°)
OKLaboklab(33.65% 0.1063 -0.0408)
OKLCHoklch(33.65% 0.114 339)
XYZxyz(5.7792, 3.3219, 6.8141)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A184A #185A28
analogous
#49185A #5A184A #5A1829
triadic
#5A184A #4A5A18 #184A5A
tetradic
#5A184A #5A4918 #185A28 #18295A
square
#5A184A #5A4918 #185A28 #18295A
split-complementary
#5A184A #295A18 #185A49
monochromatic
#180614 #2A0B22 #5A184A #8A2572 #BB3299

Accessibility & contrast

On white

12.62
#5A184A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A184A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A184A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A184A#FFFFFF#000000##FFFFFF
##5A184A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2C4B
Deuteranopia (green-blind)
#303748
Tritanopia (blue-blind)
#5F1A2E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a184a;
/* rgb */ color: rgb(90, 24, 74);
/* oklch */ color: oklch(33.6% 0.114 339.0);
Tailwind
colors: {
  custom: {
    50: '#8b5b7c',
    500: '#5a184a',
    950: '#000000',
  },
}
SCSS
$custom: #5a184a;
$custom-light: #8b5b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a184a",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 74
  },
  "hsl": {
    "h": 314.545,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33646,
    "c": 0.11392,
    "h": 339
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#5A184A
secondary
#3D9151
accent
#E16C47
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A184A

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

Preview Lab → · Contrast checker → · Palette generator →

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