#5D16A0#5D16A0

#5D16A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.5% C 0.197 H 300.3°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5D16A0
RGBrgb(93, 22, 160)
HSLhsl(271, 76%, 36%)
HSVhsv(271, 86%, 63%)
CMYKcmyk(41.9%, 86.3%, 0%, 37.3%)
CIE-LABlab(27.95, 55.29, -59.53)
CIE-LCHlch(27.95, 81.24, 312.88°)
OKLaboklab(40.46% 0.0993 -0.1703)
OKLCHoklch(40.46% 0.197 300.3)
XYZxyz(11.1447, 5.4389, 33.7135)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D16A0 #59A016
analogous
#1816A0 #5D16A0 #A0169E
triadic
#5D16A0 #A05D16 #16A05D
tetradic
#5D16A0 #A01816 #59A016 #169EA0
square
#5D16A0 #A01816 #59A016 #169EA0
split-complementary
#5D16A0 #9EA016 #16A018
monochromatic
#1E0734 #3E0F6A #5D16A0 #7C1DD6 #9A4AE6

Accessibility & contrast

On white

10.06
#5D16A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D16A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D16A0
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D16A0#FFFFFF#000000##FFFFFF
##5D16A01.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d16a0;
/* rgb */ color: rgb(93, 22, 160);
/* oklch */ color: oklch(40.5% 0.197 300.3);
Tailwind
colors: {
  custom: {
    50: '#925fbd',
    500: '#5d16a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d16a0;
$custom-light: #925fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d16a0",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 160
  },
  "hsl": {
    "h": 270.87,
    "s": 75.824,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40457,
    "c": 0.1972,
    "h": 300.3
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#5D16A0
secondary
#87C84A
accent
#F23591
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D16A0

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

Preview Lab → · Contrast checker → · Palette generator →

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