#5A185C#5A185C

#5A185C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.129 H 326.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5A185C
RGBrgb(90, 24, 92)
HSLhsl(298, 59%, 23%)
HSVhsv(298, 74%, 36%)
CMYKcmyk(2.2%, 73.9%, 0%, 63.9%)
CIE-LABlab(22.30, 39.11, -25.61)
CIE-LCHlch(22.30, 46.74, 326.78°)
OKLaboklab(34.71% 0.108 -0.071)
OKLCHoklch(34.71% 0.129 326.7)
XYZxyz(6.4747, 3.6001, 10.4770)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A185C #1A5C18
analogous
#38185C #5A185C #5C183C
triadic
#5A185C #5C5A18 #185C5A
tetradic
#5A185C #5C3818 #1A5C18 #183C5C
square
#5A185C #5C3818 #1A5C18 #183C5C
split-complementary
#5A185C #3C5C18 #185C38
monochromatic
#180618 #2B0B2B #5A185C #89258D #B931BD

Accessibility & contrast

On white

12.21
#5A185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A185C
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A185C#FFFFFF#000000##FFFFFF
##5A185C1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B305E
Deuteranopia (green-blind)
#28385A
Tritanopia (blue-blind)
#5D2238
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a185c;
/* rgb */ color: rgb(90, 24, 92);
/* oklch */ color: oklch(34.7% 0.129 326.7);
Tailwind
colors: {
  custom: {
    50: '#8b5c8a',
    500: '#5a185c',
    950: '#000000',
  },
}
SCSS
$custom: #5a185c;
$custom-light: #8b5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a185c",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 298.235,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34708,
    "c": 0.12928,
    "h": 326.7
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#5A185C
secondary
#40933D
accent
#E2464B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A185C

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

Preview Lab → · Contrast checker → · Palette generator →

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