#5D219F#5D219F

#5D219F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.187 H 299.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5D219F
RGBrgb(93, 33, 159)
HSLhsl(269, 66%, 38%)
HSVhsv(269, 79%, 62%)
CMYKcmyk(41.5%, 79.2%, 0%, 37.6%)
CIE-LABlab(29.20, 51.12, -56.86)
CIE-LCHlch(29.20, 76.46, 311.95°)
OKLaboklab(41.3% 0.0919 -0.1626)
OKLCHoklch(41.3% 0.187 299.5)
XYZxyz(11.3145, 5.9179, 33.3403)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D219F #639F21
analogous
#21249F #5D219F #9C219F
triadic
#5D219F #9F5D21 #219F5D
tetradic
#5D219F #9F2124 #639F21 #219F9C
square
#5D219F #9F2124 #639F21 #219F9C
split-complementary
#5D219F #9F9C21 #249F21
monochromatic
#220C3A #3F166C #5D219F #7B2CD2 #9A5DDD

Accessibility & contrast

On white

9.62
#5D219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D219F
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D219F#FFFFFF#000000##FFFFFF
##5D219F1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4D4360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d219f;
/* rgb */ color: rgb(93, 33, 159);
/* oklch */ color: oklch(41.3% 0.187 299.5);
Tailwind
colors: {
  custom: {
    50: '#9264bc',
    500: '#5d219f',
    950: '#000000',
  },
}
SCSS
$custom: #5d219f;
$custom-light: #9264bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d219f",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 268.571,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41298,
    "c": 0.1868,
    "h": 299.5
  },
  "luminance": 0.05918
}

Semantic roles & 50–950 ramp

primary
#5D219F
secondary
#90C25A
accent
#E93F98
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D219F

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

Preview Lab → · Contrast checker → · Palette generator →

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