#5D217D#5D217D

#5D217D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.151 H 311.1°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5D217D
RGBrgb(93, 33, 125)
HSLhsl(279, 58%, 31%)
HSVhsv(279, 74%, 49%)
CMYKcmyk(25.6%, 73.6%, 0%, 51%)
CIE-LABlab(26.44, 42.93, -40.30)
CIE-LCHlch(26.44, 58.88, 316.81°)
OKLaboklab(38.48% 0.0994 -0.114)
OKLCHoklch(38.48% 0.151 311.1)
XYZxyz(8.7590, 4.8957, 19.8816)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D217D #417D21
analogous
#2F217D #5D217D #7D216F
triadic
#5D217D #7D5D21 #217D5D
tetradic
#5D217D #7D2F21 #417D21 #216F7D
square
#5D217D #7D2F21 #417D21 #216F7D
split-complementary
#5D217D #6F7D21 #217D2F
monochromatic
#15071C #39144D #5D217D #812EAD #A149CF

Accessibility & contrast

On white

10.61
#5D217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5D217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D217D
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D217D#FFFFFF#000000##FFFFFF
##5D217D1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#13407B
Tritanopia (blue-blind)
#59354D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d217d;
/* rgb */ color: rgb(93, 33, 125);
/* oklch */ color: oklch(38.5% 0.151 311.1);
Tailwind
colors: {
  custom: {
    50: '#8e62a3',
    500: '#5d217d',
    950: '#000000',
  },
}
SCSS
$custom: #5d217d;
$custom-light: #8e62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d217d",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 279.13,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38483,
    "c": 0.15124,
    "h": 311.1
  },
  "luminance": 0.04896
}

Semantic roles & 50–950 ramp

primary
#5D217D
secondary
#6DB04A
accent
#E1467C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D217D

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

Preview Lab → · Contrast checker → · Palette generator →

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