#5A186B#5A186B

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

Color values

HEX#5A186B
RGBrgb(90, 24, 107)
HSLhsl(288, 63%, 26%)
HSVhsv(288, 78%, 42%)
CMYKcmyk(15.9%, 77.6%, 0%, 58%)
CIE-LABlab(23.30, 42.13, -33.85)
CIE-LCHlch(23.30, 54.04, 321.22°)
OKLaboklab(35.74% 0.1072 -0.0951)
OKLCHoklch(35.74% 0.143 318.4)
XYZxyz(7.1966, 3.8888, 14.2786)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A186B #296B18
analogous
#30186B #5A186B #6B1852
triadic
#5A186B #6B5A18 #186B5A
tetradic
#5A186B #6B3018 #296B18 #18526B
square
#5A186B #6B3018 #296B18 #18526B
split-complementary
#5A186B #526B18 #186B30
monochromatic
#150619 #300D39 #5A186B #84239D #AE2ECF

Accessibility & contrast

On white

11.81
#5A186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A186B
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A186B#FFFFFF#000000##FFFFFF
##5A186B1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#1C3A69
Tritanopia (blue-blind)
#5A2940
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a186b;
/* rgb */ color: rgb(90, 24, 107);
/* oklch */ color: oklch(35.7% 0.143 318.4);
Tailwind
colors: {
  custom: {
    50: '#8c5d96',
    500: '#5a186b',
    950: '#000000',
  },
}
SCSS
$custom: #5a186b;
$custom-light: #8c5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5a186b",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 287.711,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.14332,
    "h": 318.4
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#5A186B
secondary
#52A13E
accent
#E64163
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A186B

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

Preview Lab → · Contrast checker → · Palette generator →

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