#5A185D#5A185D

#5A185D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.130 H 326.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#5A185D
RGBrgb(90, 24, 93)
HSLhsl(297, 59%, 23%)
HSVhsv(297, 74%, 36%)
CMYKcmyk(3.2%, 74.2%, 0%, 63.5%)
CIE-LABlab(22.36, 39.30, -26.17)
CIE-LCHlch(22.36, 47.22, 326.34°)
OKLaboklab(34.77% 0.108 -0.0727)
OKLCHoklch(34.77% 0.13 326.1)
XYZxyz(6.5187, 3.6177, 10.7087)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A185D #1B5D18
analogous
#37185D #5A185D #5D183D
triadic
#5A185D #5D5A18 #185D5A
tetradic
#5A185D #5D3718 #1B5D18 #183D5D
square
#5A185D #5D3718 #1B5D18 #183D5D
split-complementary
#5A185D #3D5D18 #185D37
monochromatic
#180618 #2B0B2C #5A185D #89258E #B831BE

Accessibility & contrast

On white

12.19
#5A185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A185D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A185D#FFFFFF#000000##FFFFFF
##5A185D1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305F
Deuteranopia (green-blind)
#27385B
Tritanopia (blue-blind)
#5C2338
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a185d;
/* rgb */ color: rgb(90, 24, 93);
/* oklch */ color: oklch(34.8% 0.130 326.1);
Tailwind
colors: {
  custom: {
    50: '#8b5c8b',
    500: '#5a185d',
    950: '#000000',
  },
}
SCSS
$custom: #5a185d;
$custom-light: #8b5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a185d",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 297.391,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34773,
    "c": 0.13019,
    "h": 326.1
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#5A185D
secondary
#41933D
accent
#E2464C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A185D

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

Preview Lab → · Contrast checker → · Palette generator →

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