#5D159E#5D159E

#5D159E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.196 H 300.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5D159E
RGBrgb(93, 21, 158)
HSLhsl(272, 77%, 35%)
HSVhsv(272, 87%, 62%)
CMYKcmyk(41.1%, 86.7%, 0%, 38%)
CIE-LABlab(27.66, 55.12, -58.79)
CIE-LCHlch(27.66, 80.58, 313.16°)
OKLaboklab(40.2% 0.1007 -0.1682)
OKLCHoklch(40.2% 0.196 300.9)
XYZxyz(10.9524, 5.3320, 32.7933)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D159E #569E15
analogous
#19159E #5D159E #9E159A
triadic
#5D159E #9E5D15 #159E5D
tetradic
#5D159E #9E1915 #569E15 #159A9E
square
#5D159E #9E1915 #569E15 #159A9E
split-complementary
#5D159E #9A9E15 #159E19
monochromatic
#1D0732 #3D0E68 #5D159E #7D1CD4 #9B47E7

Accessibility & contrast

On white

10.16
#5D159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D159E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D159E#FFFFFF#000000##FFFFFF
##5D159E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4E3E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d159e;
/* rgb */ color: rgb(93, 21, 158);
/* oklch */ color: oklch(40.2% 0.196 300.9);
Tailwind
colors: {
  custom: {
    50: '#925fbc',
    500: '#5d159e',
    950: '#000000',
  },
}
SCSS
$custom: #5d159e;
$custom-light: #925fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d159e",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 271.533,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.402,
    "c": 0.196,
    "h": 300.9
  },
  "luminance": 0.05332
}

Semantic roles & 50–950 ramp

primary
#5D159E
secondary
#84C747
accent
#F3358F
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5D159E

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

Preview Lab → · Contrast checker → · Palette generator →

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