#5E17A1#5E17A1

#5E17A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.198 H 300.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5E17A1
RGBrgb(94, 23, 161)
HSLhsl(271, 75%, 36%)
HSVhsv(271, 86%, 63%)
CMYKcmyk(41.6%, 85.7%, 0%, 36.9%)
CIE-LABlab(28.29, 55.35, -59.58)
CIE-LCHlch(28.29, 81.32, 312.89°)
OKLaboklab(40.75% 0.0999 -0.1705)
OKLCHoklch(40.75% 0.198 300.4)
XYZxyz(11.3539, 5.5656, 34.1874)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E17A1 #5AA117
analogous
#1917A1 #5E17A1 #A1179F
triadic
#5E17A1 #A15E17 #17A15E
tetradic
#5E17A1 #A11917 #5AA117 #179FA1
square
#5E17A1 #A11917 #5AA117 #179FA1
split-complementary
#5E17A1 #9FA117 #17A119
monochromatic
#1F0836 #3F0F6B #5E17A1 #7D1FD7 #9B4DE6

Accessibility & contrast

On white

9.94
#5E17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E17A1
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E17A1#FFFFFF#000000##FFFFFF
##5E17A11.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e17a1;
/* rgb */ color: rgb(94, 23, 161);
/* oklch */ color: oklch(40.7% 0.198 300.4);
Tailwind
colors: {
  custom: {
    50: '#9360be',
    500: '#5e17a1',
    950: '#000000',
  },
}
SCSS
$custom: #5e17a1;
$custom-light: #9360be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e17a1",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 270.87,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40748,
    "c": 0.19759,
    "h": 300.4
  },
  "luminance": 0.05566
}

Semantic roles & 50–950 ramp

primary
#5E17A1
secondary
#88C74C
accent
#F23691
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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