#5D218E#5D218E

#5D218E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.169 H 304.7°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5D218E
RGBrgb(93, 33, 142)
HSLhsl(273, 62%, 34%)
HSVhsv(273, 77%, 56%)
CMYKcmyk(34.5%, 76.8%, 0%, 44.3%)
CIE-LABlab(27.76, 46.95, -48.79)
CIE-LCHlch(27.76, 67.71, 313.90°)
OKLaboklab(39.84% 0.0963 -0.1389)
OKLCHoklch(39.84% 0.169 304.7)
XYZxyz(9.9394, 5.3679, 26.0984)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D218E #528E21
analogous
#27218E #5D218E #8E2189
triadic
#5D218E #8E5D21 #218E5D
tetradic
#5D218E #8E2721 #528E21 #21898E
square
#5D218E #8E2721 #528E21 #21898E
split-complementary
#5D218E #898E21 #218E27
monochromatic
#1C0A2B #3C155C #5D218E #7E2DC0 #9B52D7

Accessibility & contrast

On white

10.13
#5D218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5D218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D218E
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D218E#FFFFFF#000000##FFFFFF
##5D218E1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#543C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d218e;
/* rgb */ color: rgb(93, 33, 142);
/* oklch */ color: oklch(39.8% 0.169 304.7);
Tailwind
colors: {
  custom: {
    50: '#9063b0',
    500: '#5d218e',
    950: '#000000',
  },
}
SCSS
$custom: #5d218e;
$custom-light: #9063b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d218e",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 273.028,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39836,
    "c": 0.16903,
    "h": 304.7
  },
  "luminance": 0.05368
}

Semantic roles & 50–950 ramp

primary
#5D218E
secondary
#80BA50
accent
#E5428C
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D218E

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

Preview Lab → · Contrast checker → · Palette generator →

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