#5D216D#5D216D

#5D216D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.3% C 0.135 H 318.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#5D216D
RGBrgb(93, 33, 109)
HSLhsl(287, 54%, 28%)
HSVhsv(287, 70%, 43%)
CMYKcmyk(14.7%, 69.7%, 0%, 57.3%)
CIE-LABlab(25.32, 39.35, -31.88)
CIE-LCHlch(25.32, 50.65, 320.98°)
OKLaboklab(37.33% 0.1008 -0.0893)
OKLCHoklch(37.33% 0.135 318.5)
XYZxyz(7.8180, 4.5193, 14.9255)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D216D #316D21
analogous
#37216D #5D216D #6D2157
triadic
#5D216D #6D5D21 #216D5D
tetradic
#5D216D #6D3721 #316D21 #21576D
square
#5D216D #6D3721 #316D21 #21576D
split-complementary
#5D216D #576D21 #216D37
monochromatic
#140717 #35133E #5D216D #852F9C #AA42C6

Accessibility & contrast

On white

11.03
#5D216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5D216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D216D
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D216D#FFFFFF#000000##FFFFFF
##5D216D1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04386F
Deuteranopia (green-blind)
#253E6B
Tritanopia (blue-blind)
#5D2F44
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d216d;
/* rgb */ color: rgb(93, 33, 109);
/* oklch */ color: oklch(37.3% 0.135 318.5);
Tailwind
colors: {
  custom: {
    50: '#8e6197',
    500: '#5d216d',
    950: '#000000',
  },
}
SCSS
$custom: #5d216d;
$custom-light: #8e6197;
$custom-dark: #000000;
JSON
{
  "hex": "#5d216d",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 287.368,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37327,
    "c": 0.13468,
    "h": 318.5
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#5D216D
secondary
#5CA149
accent
#DD4B6A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5D216D

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

Preview Lab → · Contrast checker → · Palette generator →

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