#5A186A#5A186A

#5A186A is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.142 H 318.9°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#5A186A
RGBrgb(90, 24, 106)
HSLhsl(288, 63%, 25%)
HSVhsv(288, 77%, 42%)
CMYKcmyk(15.1%, 77.4%, 0%, 58.4%)
CIE-LABlab(23.23, 41.92, -33.32)
CIE-LCHlch(23.23, 53.55, 321.52°)
OKLaboklab(35.67% 0.1074 -0.0935)
OKLCHoklch(35.67% 0.142 318.9)
XYZxyz(7.1443, 3.8679, 14.0031)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A186A #286A18
analogous
#31186A #5A186A #6A1851
triadic
#5A186A #6A5A18 #186A5A
tetradic
#5A186A #6A3118 #286A18 #18516A
square
#5A186A #6A3118 #286A18 #18516A
split-complementary
#5A186A #516A18 #186A31
monochromatic
#150619 #300D38 #5A186A #84239C #AF2FCE

Accessibility & contrast

On white

11.84
#5A186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A186A
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A186A#FFFFFF#000000##FFFFFF
##5A186A1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#1D3A68
Tritanopia (blue-blind)
#5A2940
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a186a;
/* rgb */ color: rgb(90, 24, 106);
/* oklch */ color: oklch(35.7% 0.142 318.9);
Tailwind
colors: {
  custom: {
    50: '#8c5c95',
    500: '#5a186a',
    950: '#000000',
  },
}
SCSS
$custom: #5a186a;
$custom-light: #8c5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a186a",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 288.293,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35668,
    "c": 0.14237,
    "h": 318.9
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#5A186A
secondary
#51A03E
accent
#E64262
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A186A

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

Preview Lab → · Contrast checker → · Palette generator →

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