#5D217E#5D217E

#5D217E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.152 H 310.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5D217E
RGBrgb(93, 33, 126)
HSLhsl(279, 58%, 31%)
HSVhsv(279, 74%, 49%)
CMYKcmyk(26.2%, 73.8%, 0%, 50.6%)
CIE-LABlab(26.51, 43.16, -40.81)
CIE-LCHlch(26.51, 59.40, 316.60°)
OKLaboklab(38.56% 0.0993 -0.1155)
OKLCHoklch(38.56% 0.152 310.7)
XYZxyz(8.8232, 4.9214, 20.2198)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D217E #427E21
analogous
#2E217E #5D217E #7E2170
triadic
#5D217E #7E5D21 #217E5D
tetradic
#5D217E #7E2E21 #427E21 #21707E
square
#5D217E #7E2E21 #427E21 #21707E
split-complementary
#5D217E #707E21 #217E2E
monochromatic
#15081D #39144E #5D217E #812EAE #A04AD0

Accessibility & contrast

On white

10.58
#5D217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D217E
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D217E#FFFFFF#000000##FFFFFF
##5D217E1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#11407C
Tritanopia (blue-blind)
#59364D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d217e;
/* rgb */ color: rgb(93, 33, 126);
/* oklch */ color: oklch(38.6% 0.152 310.7);
Tailwind
colors: {
  custom: {
    50: '#8f62a4',
    500: '#5d217e',
    950: '#000000',
  },
}
SCSS
$custom: #5d217e;
$custom-light: #8f62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d217e",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 278.71,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38559,
    "c": 0.15228,
    "h": 310.7
  },
  "luminance": 0.04921
}

Semantic roles & 50–950 ramp

primary
#5D217E
secondary
#6EB14A
accent
#E2467D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5D217E

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

Preview Lab → · Contrast checker → · Palette generator →

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