#5D219A#5D219A

#5D219A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.182 H 300.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5D219A
RGBrgb(93, 33, 154)
HSLhsl(270, 65%, 37%)
HSVhsv(270, 79%, 60%)
CMYKcmyk(39.6%, 78.6%, 0%, 39.6%)
CIE-LABlab(28.77, 49.88, -54.53)
CIE-LCHlch(28.77, 73.90, 312.45°)
OKLaboklab(40.86% 0.0933 -0.1558)
OKLCHoklch(40.86% 0.182 300.9)
XYZxyz(10.8894, 5.7479, 31.1013)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D219A #5E9A21
analogous
#21229A #5D219A #9A219A
triadic
#5D219A #9A5D21 #219A5D
tetradic
#5D219A #9A2122 #5E9A21 #219A9A
square
#5D219A #9A2122 #5E9A21 #219A9A
split-complementary
#5D219A #9A9A21 #229A21
monochromatic
#200B35 #3F1668 #5D219A #7B2CCC #9A5ADC

Accessibility & contrast

On white

9.77
#5D219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D219A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D219A#FFFFFF#000000##FFFFFF
##5D219A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4F415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d219a;
/* rgb */ color: rgb(93, 33, 154);
/* oklch */ color: oklch(40.9% 0.182 300.9);
Tailwind
colors: {
  custom: {
    50: '#9164b9',
    500: '#5d219a',
    950: '#000000',
  },
}
SCSS
$custom: #5d219a;
$custom-light: #9164b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d219a",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 269.752,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40857,
    "c": 0.18159,
    "h": 300.9
  },
  "luminance": 0.05748
}

Semantic roles & 50–950 ramp

primary
#5D219A
secondary
#8CC057
accent
#E84095
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D219A

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

Preview Lab → · Contrast checker → · Palette generator →

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