#5D15A0#5D15A0

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

Color values

HEX#5D15A0
RGBrgb(93, 21, 160)
HSLhsl(271, 77%, 35%)
HSVhsv(271, 87%, 63%)
CMYKcmyk(41.9%, 86.9%, 0%, 37.3%)
CIE-LABlab(27.85, 55.58, -59.69)
CIE-LCHlch(27.85, 81.57, 312.96°)
OKLaboklab(40.39% 0.0999 -0.1708)
OKLCHoklch(40.39% 0.198 300.3)
XYZxyz(11.1259, 5.4014, 33.7073)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D15A0 #58A015
analogous
#1715A0 #5D15A0 #A0159D
triadic
#5D15A0 #A05D15 #15A05D
tetradic
#5D15A0 #A01715 #58A015 #159DA0
square
#5D15A0 #A01715 #58A015 #159DA0
split-complementary
#5D15A0 #9DA015 #15A017
monochromatic
#1E0734 #3E0E6A #5D15A0 #7C1CD6 #9B48E7

Accessibility & contrast

On white

10.09
#5D15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D15A0
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D15A0#FFFFFF#000000##FFFFFF
##5D15A01.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d15a0;
/* rgb */ color: rgb(93, 21, 160);
/* oklch */ color: oklch(40.4% 0.198 300.3);
Tailwind
colors: {
  custom: {
    50: '#925fbd',
    500: '#5d15a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d15a0;
$custom-light: #925fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d15a0",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 271.079,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40387,
    "c": 0.19792,
    "h": 300.3
  },
  "luminance": 0.05402
}

Semantic roles & 50–950 ramp

primary
#5D15A0
secondary
#86C849
accent
#F33490
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D15A0

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

Preview Lab → · Contrast checker → · Palette generator →

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