#5A17A0#5A17A0

#5A17A0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.196 H 298.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5A17A0
RGBrgb(90, 23, 160)
HSLhsl(269, 75%, 36%)
HSVhsv(269, 86%, 63%)
CMYKcmyk(43.7%, 85.6%, 0%, 37.3%)
CIE-LABlab(27.64, 54.57, -60.05)
CIE-LCHlch(27.64, 81.14, 312.26°)
OKLaboklab(40.15% 0.0941 -0.172)
OKLCHoklch(40.15% 0.196 298.7)
XYZxyz(10.8664, 5.3243, 33.7061)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A17A0 #5DA017
analogous
#1719A0 #5A17A0 #9E17A0
triadic
#5A17A0 #A05A17 #17A05A
tetradic
#5A17A0 #A01719 #5DA017 #17A09E
square
#5A17A0 #A01719 #5DA017 #17A09E
split-complementary
#5A17A0 #A09E17 #19A017
monochromatic
#1E0835 #3C0F6A #5A17A0 #781FD6 #974CE5

Accessibility & contrast

On white

10.17
#5A17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A17A0
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A17A0#FFFFFF#000000##FFFFFF
##5A17A01.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#48405F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a17a0;
/* rgb */ color: rgb(90, 23, 160);
/* oklch */ color: oklch(40.2% 0.196 298.7);
Tailwind
colors: {
  custom: {
    50: '#905fbd',
    500: '#5a17a0',
    950: '#000000',
  },
}
SCSS
$custom: #5a17a0;
$custom-light: #905fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a17a0",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 269.343,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40154,
    "c": 0.19606,
    "h": 298.7
  },
  "luminance": 0.05325
}

Semantic roles & 50–950 ramp

primary
#5A17A0
secondary
#8BC74C
accent
#F13696
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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