#5A184D#5A184D

#5A184D is a dark, moderate pink. Relative luminance 0.034; OKLCH L 33.8% C 0.116 H 336.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#5A184D
RGBrgb(90, 24, 77)
HSLhsl(312, 58%, 22%)
HSVhsv(312, 73%, 35%)
CMYKcmyk(0%, 73.3%, 14.4%, 64.7%)
CIE-LABlab(21.44, 36.38, -16.91)
CIE-LCHlch(21.44, 40.12, 335.07°)
OKLaboklab(33.81% 0.1068 -0.0459)
OKLCHoklch(33.81% 0.116 336.7)
XYZxyz(5.8827, 3.3633, 7.3591)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A184D #185A25
analogous
#46185A #5A184D #5A182C
triadic
#5A184D #4D5A18 #184D5A
tetradic
#5A184D #5A4618 #185A25 #182C5A
square
#5A184D #5A4618 #185A25 #182C5A
split-complementary
#5A184D #2C5A18 #185A46
monochromatic
#180615 #2A0B24 #5A184D #8A2576 #BB32A0

Accessibility & contrast

On white

12.56
#5A184D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A184D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A184D#FFFFFF#000000##FFFFFF
##5A184D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D4F
Deuteranopia (green-blind)
#2F374B
Tritanopia (blue-blind)
#5F1C30
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a184d;
/* rgb */ color: rgb(90, 24, 77);
/* oklch */ color: oklch(33.8% 0.116 336.7);
Tailwind
colors: {
  custom: {
    50: '#8b5b7f',
    500: '#5a184d',
    950: '#000000',
  },
}
SCSS
$custom: #5a184d;
$custom-light: #8b5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a184d",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 77
  },
  "hsl": {
    "h": 311.818,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33809,
    "c": 0.11629,
    "h": 336.7
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#5A184D
secondary
#3D914E
accent
#E16547
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A184D

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

Preview Lab → · Contrast checker → · Palette generator →

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