#5D17A0#5D17A0

#5D17A0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.196 H 300.2°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5D17A0
RGBrgb(93, 23, 160)
HSLhsl(271, 75%, 36%)
HSVhsv(271, 86%, 63%)
CMYKcmyk(41.9%, 85.6%, 0%, 37.3%)
CIE-LABlab(28.06, 54.98, -59.36)
CIE-LCHlch(28.06, 80.90, 312.81°)
OKLaboklab(40.53% 0.0987 -0.1698)
OKLCHoklch(40.53% 0.196 300.2)
XYZxyz(11.1642, 5.4779, 33.7200)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D17A0 #5AA017
analogous
#1917A0 #5D17A0 #A0179E
triadic
#5D17A0 #A05D17 #17A05D
tetradic
#5D17A0 #A01917 #5AA017 #179EA0
square
#5D17A0 #A01917 #5AA017 #179EA0
split-complementary
#5D17A0 #9EA017 #17A019
monochromatic
#1F0835 #3E0F6A #5D17A0 #7C1FD6 #9A4CE5

Accessibility & contrast

On white

10.02
#5D17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D17A0
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D17A0#FFFFFF#000000##FFFFFF
##5D17A01.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#4D405F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d17a0;
/* rgb */ color: rgb(93, 23, 160);
/* oklch */ color: oklch(40.5% 0.196 300.2);
Tailwind
colors: {
  custom: {
    50: '#9260bd',
    500: '#5d17a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d17a0;
$custom-light: #9260bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d17a0",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 270.657,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40529,
    "c": 0.19647,
    "h": 300.2
  },
  "luminance": 0.05478
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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