#5A184C#5A184C

#5A184C is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.8% C 0.115 H 337.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5A184C
RGBrgb(90, 24, 76)
HSLhsl(313, 58%, 22%)
HSVhsv(313, 73%, 35%)
CMYKcmyk(0%, 73.3%, 15.6%, 64.7%)
CIE-LABlab(21.39, 36.22, -16.31)
CIE-LCHlch(21.39, 39.72, 335.75°)
OKLaboklab(33.75% 0.1067 -0.0442)
OKLCHoklch(33.75% 0.115 337.5)
XYZxyz(5.8477, 3.3493, 7.1746)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A184C #185A26
analogous
#47185A #5A184C #5A182B
triadic
#5A184C #4C5A18 #184C5A
tetradic
#5A184C #5A4718 #185A26 #182B5A
square
#5A184C #5A4718 #185A26 #182B5A
split-complementary
#5A184C #2B5A18 #185A47
monochromatic
#180614 #2A0B23 #5A184C #8A2575 #BB329E

Accessibility & contrast

On white

12.58
#5A184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A184C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A184C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A184C#FFFFFF#000000##FFFFFF
##5A184C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4D
Deuteranopia (green-blind)
#2F374A
Tritanopia (blue-blind)
#5F1B2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a184c;
/* rgb */ color: rgb(90, 24, 76);
/* oklch */ color: oklch(33.8% 0.115 337.5);
Tailwind
colors: {
  custom: {
    50: '#8b5b7e',
    500: '#5a184c',
    950: '#000000',
  },
}
SCSS
$custom: #5a184c;
$custom-light: #8b5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a184c",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 312.727,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.11549,
    "h": 337.5
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#5A184C
secondary
#3D914F
accent
#E16747
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A184C

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

Preview Lab → · Contrast checker → · Palette generator →

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