#5A185B#5A185B

#5A185B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.128 H 327.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5A185B
RGBrgb(90, 24, 91)
HSLhsl(299, 58%, 23%)
HSVhsv(299, 74%, 36%)
CMYKcmyk(1.1%, 73.6%, 0%, 64.3%)
CIE-LABlab(22.24, 38.91, -25.04)
CIE-LCHlch(22.24, 46.28, 327.24°)
OKLaboklab(34.64% 0.108 -0.0694)
OKLCHoklch(34.64% 0.128 327.3)
XYZxyz(6.4313, 3.5827, 10.2483)
Luminance0.0358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A185B #195B18
analogous
#38185B #5A185B #5B183B
triadic
#5A185B #5B5A18 #185B5A
tetradic
#5A185B #5B3818 #195B18 #183B5B
square
#5A185B #5B3818 #195B18 #183B5B
split-complementary
#5A185B #3B5B18 #185B38
monochromatic
#180618 #2A0B2B #5A185B #8A258B #BA32BC

Accessibility & contrast

On white

12.23
#5A185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A185B
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A185B#FFFFFF#000000##FFFFFF
##5A185B1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305D
Deuteranopia (green-blind)
#283859
Tritanopia (blue-blind)
#5D2237
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a185b;
/* rgb */ color: rgb(90, 24, 91);
/* oklch */ color: oklch(34.6% 0.128 327.3);
Tailwind
colors: {
  custom: {
    50: '#8b5c8a',
    500: '#5a185b',
    950: '#000000',
  },
}
SCSS
$custom: #5a185b;
$custom-light: #8b5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a185b",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 299.104,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34644,
    "c": 0.12836,
    "h": 327.3
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#5A185B
secondary
#3E923D
accent
#E14649
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A185B

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

Preview Lab → · Contrast checker → · Palette generator →

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