#5D219C#5D219C

#5D219C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.184 H 300.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5D219C
RGBrgb(93, 33, 156)
HSLhsl(269, 65%, 37%)
HSVhsv(269, 79%, 61%)
CMYKcmyk(40.4%, 78.8%, 0%, 38.8%)
CIE-LABlab(28.94, 50.37, -55.47)
CIE-LCHlch(28.94, 74.93, 312.24°)
OKLaboklab(41.03% 0.0928 -0.1585)
OKLCHoklch(41.03% 0.184 300.3)
XYZxyz(11.0573, 5.8151, 31.9859)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D219C #609C21
analogous
#21239C #5D219C #9A219C
triadic
#5D219C #9C5D21 #219C5D
tetradic
#5D219C #9C2123 #609C21 #219C9A
square
#5D219C #9C2123 #609C21 #219C9A
split-complementary
#5D219C #9C9A21 #239C21
monochromatic
#210C37 #3F1669 #5D219C #7B2CCF #9A5BDC

Accessibility & contrast

On white

9.71
#5D219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D219C
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D219C#FFFFFF#000000##FFFFFF
##5D219C1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4E425E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d219c;
/* rgb */ color: rgb(93, 33, 156);
/* oklch */ color: oklch(41.0% 0.184 300.3);
Tailwind
colors: {
  custom: {
    50: '#9164ba',
    500: '#5d219c',
    950: '#000000',
  },
}
SCSS
$custom: #5d219c;
$custom-light: #9164ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d219c",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 269.268,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.18367,
    "h": 300.3
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#5D219C
secondary
#8EC158
accent
#E84096
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D219C

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

Preview Lab → · Contrast checker → · Palette generator →

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