#5A186E#5A186E

#5A186E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.146 H 317.0°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#5A186E
RGBrgb(90, 24, 110)
HSLhsl(286, 64%, 26%)
HSVhsv(286, 78%, 43%)
CMYKcmyk(18.2%, 78.2%, 0%, 56.9%)
CIE-LABlab(23.52, 42.76, -35.45)
CIE-LCHlch(23.52, 55.55, 320.34°)
OKLaboklab(35.96% 0.1069 -0.0998)
OKLCHoklch(35.96% 0.146 317)
XYZxyz(7.3571, 3.9530, 15.1243)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A186E #2C6E18
analogous
#2F186E #5A186E #6E1857
triadic
#5A186E #6E5A18 #186E5A
tetradic
#5A186E #6E2F18 #2C6E18 #18576E
square
#5A186E #6E2F18 #2C6E18 #18576E
split-complementary
#5A186E #576E18 #186E2F
monochromatic
#150519 #310D3C #5A186E #8323A0 #AC2FD2

Accessibility & contrast

On white

11.73
#5A186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A186E
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A186E#FFFFFF#000000##FFFFFF
##5A186E1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#193A6C
Tritanopia (blue-blind)
#592A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a186e;
/* rgb */ color: rgb(90, 24, 110);
/* oklch */ color: oklch(36.0% 0.146 317.0);
Tailwind
colors: {
  custom: {
    50: '#8c5d98',
    500: '#5a186e',
    950: '#000000',
  },
}
SCSS
$custom: #5a186e;
$custom-light: #8c5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a186e",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 286.047,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35962,
    "c": 0.1462,
    "h": 317
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#5A186E
secondary
#56A43E
accent
#E74167
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A186E

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

Preview Lab → · Contrast checker → · Palette generator →

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