#5A186F#5A186F

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

Color values

HEX#5A186F
RGBrgb(90, 24, 111)
HSLhsl(286, 64%, 26%)
HSVhsv(286, 78%, 44%)
CMYKcmyk(18.9%, 78.4%, 0%, 56.5%)
CIE-LABlab(23.59, 42.98, -35.98)
CIE-LCHlch(23.59, 56.05, 320.07°)
OKLaboklab(36.04% 0.1067 -0.1013)
OKLCHoklch(36.04% 0.147 316.5)
XYZxyz(7.4119, 3.9749, 15.4127)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A186F #2D6F18
analogous
#2F186F #5A186F #6F1859
triadic
#5A186F #6F5A18 #186F5A
tetradic
#5A186F #6F2F18 #2D6F18 #18596F
square
#5A186F #6F2F18 #2D6F18 #18596F
split-complementary
#5A186F #596F18 #186F2F
monochromatic
#140519 #310D3D #5A186F #8323A1 #AB2FD2

Accessibility & contrast

On white

11.70
#5A186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5A186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A186F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A186F#FFFFFF#000000##FFFFFF
##5A186F1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#183A6D
Tritanopia (blue-blind)
#592B42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a186f;
/* rgb */ color: rgb(90, 24, 111);
/* oklch */ color: oklch(36.0% 0.147 316.5);
Tailwind
colors: {
  custom: {
    50: '#8c5d99',
    500: '#5a186f',
    950: '#000000',
  },
}
SCSS
$custom: #5a186f;
$custom-light: #8c5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5a186f",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 285.517,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36037,
    "c": 0.14716,
    "h": 316.5
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#5A186F
secondary
#57A53E
accent
#E74069
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A186F

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

Preview Lab → · Contrast checker → · Palette generator →

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