#5D219D#5D219D

#5D219D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.185 H 300.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5D219D
RGBrgb(93, 33, 157)
HSLhsl(269, 65%, 37%)
HSVhsv(269, 79%, 62%)
CMYKcmyk(40.8%, 79%, 0%, 38.4%)
CIE-LABlab(29.03, 50.62, -55.93)
CIE-LCHlch(29.03, 75.44, 312.14°)
OKLaboklab(41.12% 0.0925 -0.1599)
OKLCHoklch(41.12% 0.185 300)
XYZxyz(11.1423, 5.8491, 32.4337)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D219D #619D21
analogous
#21239D #5D219D #9B219D
triadic
#5D219D #9D5D21 #219D5D
tetradic
#5D219D #9D2123 #619D21 #219D9B
square
#5D219D #9D2123 #619D21 #219D9B
split-complementary
#5D219D #9D9B21 #239D21
monochromatic
#210C38 #3F166A #5D219D #7B2CD0 #9A5CDD

Accessibility & contrast

On white

9.68
#5D219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D219D
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D219D#FFFFFF#000000##FFFFFF
##5D219D1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#4E435F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d219d;
/* rgb */ color: rgb(93, 33, 157);
/* oklch */ color: oklch(41.1% 0.185 300.0);
Tailwind
colors: {
  custom: {
    50: '#9164bb',
    500: '#5d219d',
    950: '#000000',
  },
}
SCSS
$custom: #5d219d;
$custom-light: #9164bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d219d",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 269.032,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41121,
    "c": 0.18472,
    "h": 300
  },
  "luminance": 0.05849
}

Semantic roles & 50–950 ramp

primary
#5D219D
secondary
#8FC159
accent
#E84097
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D219D

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

Preview Lab → · Contrast checker → · Palette generator →

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