#5A185A#5A185A

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

Color values

HEX#5A185A
RGBrgb(90, 24, 90)
HSLhsl(300, 58%, 22%)
HSVhsv(300, 73%, 35%)
CMYKcmyk(0%, 73.3%, 0%, 64.7%)
CIE-LABlab(22.18, 38.72, -24.48)
CIE-LCHlch(22.18, 45.81, 327.71°)
OKLaboklab(34.58% 0.108 -0.0677)
OKLCHoklch(34.58% 0.127 327.9)
XYZxyz(6.3885, 3.5656, 10.0226)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A185A #185A18
analogous
#39185A #5A185A #5A1839
triadic
#5A185A #5A5A18 #185A5A
tetradic
#5A185A #5A3918 #185A18 #18395A
square
#5A185A #5A3918 #185A18 #18395A
split-complementary
#5A185A #395A18 #185A39
monochromatic
#180618 #2A0B2A #5A185A #8A258A #BB32BB

Accessibility & contrast

On white

12.26
#5A185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A185A
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A185A#FFFFFF#000000##FFFFFF
##5A185A1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305C
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#5D2137
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a185a;
/* rgb */ color: rgb(90, 24, 90);
/* oklch */ color: oklch(34.6% 0.127 327.9);
Tailwind
colors: {
  custom: {
    50: '#8b5c89',
    500: '#5a185a',
    950: '#000000',
  },
}
SCSS
$custom: #5a185a;
$custom-light: #8b5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#5a185a",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3458,
    "c": 0.12746,
    "h": 327.9
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#5A185A
secondary
#3D913D
accent
#E14747
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A185A

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

Preview Lab → · Contrast checker → · Palette generator →

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