#5D219B#5D219B

#5D219B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.183 H 300.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5D219B
RGBrgb(93, 33, 155)
HSLhsl(270, 65%, 37%)
HSVhsv(270, 79%, 61%)
CMYKcmyk(40%, 78.7%, 0%, 39.2%)
CIE-LABlab(28.85, 50.13, -55.00)
CIE-LCHlch(28.85, 74.42, 312.35°)
OKLaboklab(40.95% 0.093 -0.1572)
OKLCHoklch(40.95% 0.183 300.6)
XYZxyz(10.9730, 5.7813, 31.5418)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D219B #5F9B21
analogous
#21229B #5D219B #9A219B
triadic
#5D219B #9B5D21 #219B5D
tetradic
#5D219B #9B2122 #5F9B21 #219B9A
square
#5D219B #9B2122 #5F9B21 #219B9A
split-complementary
#5D219B #9B9A21 #229B21
monochromatic
#200C36 #3F1669 #5D219B #7B2CCD #9A5ADC

Accessibility & contrast

On white

9.74
#5D219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D219B
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D219B#FFFFFF#000000##FFFFFF
##5D219B1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4F425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d219b;
/* rgb */ color: rgb(93, 33, 155);
/* oklch */ color: oklch(40.9% 0.183 300.6);
Tailwind
colors: {
  custom: {
    50: '#9164b9',
    500: '#5d219b',
    950: '#000000',
  },
}
SCSS
$custom: #5d219b;
$custom-light: #9164b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d219b",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 269.508,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40945,
    "c": 0.18264,
    "h": 300.6
  },
  "luminance": 0.05781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D219B

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

Preview Lab → · Contrast checker → · Palette generator →

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