#5D218D#5D218D

#5D218D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.168 H 305.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5D218D
RGBrgb(93, 33, 141)
HSLhsl(273, 62%, 34%)
HSVhsv(273, 77%, 55%)
CMYKcmyk(34%, 76.6%, 0%, 44.7%)
CIE-LABlab(27.68, 46.71, -48.30)
CIE-LCHlch(27.68, 67.19, 314.04°)
OKLaboklab(39.75% 0.0965 -0.1375)
OKLCHoklch(39.75% 0.168 305.1)
XYZxyz(9.8647, 5.3380, 25.7048)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D218D #518D21
analogous
#27218D #5D218D #8D2187
triadic
#5D218D #8D5D21 #218D5D
tetradic
#5D218D #8D2721 #518D21 #21878D
square
#5D218D #8D2721 #518D21 #21878D
split-complementary
#5D218D #878D21 #218D27
monochromatic
#1C0A2A #3C155B #5D218D #7E2DBF #9C52D6

Accessibility & contrast

On white

10.16
#5D218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D218D
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D218D#FFFFFF#000000##FFFFFF
##5D218D1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#543C56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d218d;
/* rgb */ color: rgb(93, 33, 141);
/* oklch */ color: oklch(39.8% 0.168 305.1);
Tailwind
colors: {
  custom: {
    50: '#9063af',
    500: '#5d218d',
    950: '#000000',
  },
}
SCSS
$custom: #5d218d;
$custom-light: #9063af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d218d",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 273.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39753,
    "c": 0.16799,
    "h": 305.1
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#5D218D
secondary
#7FBA50
accent
#E5438B
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D218D

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

Preview Lab → · Contrast checker → · Palette generator →

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