#5A185E#5A185E

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

Color values

HEX#5A185E
RGBrgb(90, 24, 94)
HSLhsl(297, 59%, 23%)
HSVhsv(297, 74%, 37%)
CMYKcmyk(4.3%, 74.5%, 0%, 63.1%)
CIE-LABlab(22.43, 39.49, -26.73)
CIE-LCHlch(22.43, 47.69, 325.91°)
OKLaboklab(34.84% 0.108 -0.0743)
OKLCHoklch(34.84% 0.131 325.5)
XYZxyz(6.5633, 3.6355, 10.9435)
Luminance0.0364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A185E #1C5E18
analogous
#37185E #5A185E #5E183F
triadic
#5A185E #5E5A18 #185E5A
tetradic
#5A185E #5E3718 #1C5E18 #183F5E
square
#5A185E #5E3718 #1C5E18 #183F5E
split-complementary
#5A185E #3F5E18 #185E37
monochromatic
#170618 #2B0C2D #5A185E #89248F #B731C0

Accessibility & contrast

On white

12.16
#5A185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5A185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A185E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A185E#FFFFFF#000000##FFFFFF
##5A185E1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073060
Deuteranopia (green-blind)
#27385C
Tritanopia (blue-blind)
#5C2339
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a185e;
/* rgb */ color: rgb(90, 24, 94);
/* oklch */ color: oklch(34.8% 0.131 325.5);
Tailwind
colors: {
  custom: {
    50: '#8b5c8c',
    500: '#5a185e',
    950: '#000000',
  },
}
SCSS
$custom: #5a185e;
$custom-light: #8b5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a185e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 296.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34838,
    "c": 0.1311,
    "h": 325.5
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#5A185E
secondary
#42943D
accent
#E3454E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A185E

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

Preview Lab → · Contrast checker → · Palette generator →

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