#5D219E#5D219E

#5D219E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.186 H 299.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5D219E
RGBrgb(93, 33, 158)
HSLhsl(269, 65%, 37%)
HSVhsv(269, 79%, 62%)
CMYKcmyk(41.1%, 79.1%, 0%, 38%)
CIE-LABlab(29.12, 50.87, -56.40)
CIE-LCHlch(29.12, 75.95, 312.05°)
OKLaboklab(41.21% 0.0922 -0.1613)
OKLCHoklch(41.21% 0.186 299.8)
XYZxyz(11.2281, 5.8834, 32.8852)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D219E #629E21
analogous
#21249E #5D219E #9C219E
triadic
#5D219E #9E5D21 #219E5D
tetradic
#5D219E #9E2124 #629E21 #219E9C
square
#5D219E #9E2124 #629E21 #219E9C
split-complementary
#5D219E #9E9C21 #249E21
monochromatic
#210C39 #3F166B #5D219E #7B2CD1 #9A5CDD

Accessibility & contrast

On white

9.65
#5D219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5D219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D219E
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D219E#FFFFFF#000000##FFFFFF
##5D219E1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4D435F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d219e;
/* rgb */ color: rgb(93, 33, 158);
/* oklch */ color: oklch(41.2% 0.186 299.8);
Tailwind
colors: {
  custom: {
    50: '#9164bc',
    500: '#5d219e',
    950: '#000000',
  },
}
SCSS
$custom: #5d219e;
$custom-light: #9164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d219e",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 268.8,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41209,
    "c": 0.18577,
    "h": 299.8
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D219E

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

Preview Lab → · Contrast checker → · Palette generator →

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