#5B17A0#5B17A0

#5B17A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.196 H 299.2°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5B17A0
RGBrgb(91, 23, 160)
HSLhsl(270, 75%, 36%)
HSVhsv(270, 86%, 63%)
CMYKcmyk(43.1%, 85.6%, 0%, 37.3%)
CIE-LABlab(27.78, 54.70, -59.82)
CIE-LCHlch(27.78, 81.06, 312.44°)
OKLaboklab(40.28% 0.0957 -0.1713)
OKLCHoklch(40.28% 0.196 299.2)
XYZxyz(10.9643, 5.3748, 33.7107)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B17A0 #5CA017
analogous
#1718A0 #5B17A0 #9F17A0
triadic
#5B17A0 #A05B17 #17A05B
tetradic
#5B17A0 #A01718 #5CA017 #17A09F
square
#5B17A0 #A01718 #5CA017 #17A09F
split-complementary
#5B17A0 #A09F17 #18A017
monochromatic
#1E0835 #3D0F6A #5B17A0 #791FD6 #984CE5

Accessibility & contrast

On white

10.12
#5B17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B17A0
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B17A0#FFFFFF#000000##FFFFFF
##5B17A01.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#4A405F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b17a0;
/* rgb */ color: rgb(91, 23, 160);
/* oklch */ color: oklch(40.3% 0.196 299.2);
Tailwind
colors: {
  custom: {
    50: '#915fbd',
    500: '#5b17a0',
    950: '#000000',
  },
}
SCSS
$custom: #5b17a0;
$custom-light: #915fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b17a0",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 269.781,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40278,
    "c": 0.19619,
    "h": 299.2
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#5B17A0
secondary
#8AC74C
accent
#F13695
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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