#5E17A0#5E17A0

#5E17A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.7% C 0.197 H 300.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#5E17A0
RGBrgb(94, 23, 160)
HSLhsl(271, 75%, 36%)
HSVhsv(271, 86%, 63%)
CMYKcmyk(41.3%, 85.6%, 0%, 37.3%)
CIE-LABlab(28.20, 55.11, -59.12)
CIE-LCHlch(28.20, 80.83, 312.99°)
OKLaboklab(40.66% 0.1003 -0.1691)
OKLCHoklch(40.66% 0.197 300.7)
XYZxyz(11.2661, 5.5304, 33.7248)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E17A0 #59A017
analogous
#1A17A0 #5E17A0 #A0179D
triadic
#5E17A0 #A05E17 #17A05E
tetradic
#5E17A0 #A01A17 #59A017 #179DA0
square
#5E17A0 #A01A17 #59A017 #179DA0
split-complementary
#5E17A0 #9DA017 #17A01A
monochromatic
#1F0835 #3F0F6A #5E17A0 #7D1FD6 #9B4CE5

Accessibility & contrast

On white

9.97
#5E17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E17A0
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E17A0#FFFFFF#000000##FFFFFF
##5E17A01.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#4E405F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e17a0;
/* rgb */ color: rgb(94, 23, 160);
/* oklch */ color: oklch(40.7% 0.197 300.7);
Tailwind
colors: {
  custom: {
    50: '#9360bd',
    500: '#5e17a0',
    950: '#000000',
  },
}
SCSS
$custom: #5e17a0;
$custom-light: #9360bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e17a0",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 271.095,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.19662,
    "h": 300.7
  },
  "luminance": 0.05531
}

Semantic roles & 50–950 ramp

primary
#5E17A0
secondary
#87C74C
accent
#F13690
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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