#5216CD#5216CD

#5216CD is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.8% C 0.241 H 285.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5216CD
RGBrgb(82, 22, 205)
HSLhsl(260, 81%, 45%)
HSVhsv(260, 89%, 80%)
CMYKcmyk(60%, 89.3%, 0%, 19.6%)
CIE-LABlab(31.29, 65.06, -80.85)
CIE-LCHlch(31.29, 103.78, 308.82°)
OKLaboklab(43.82% 0.0636 -0.2329)
OKLCHoklch(43.82% 0.241 285.3)
XYZxyz(14.7827, 6.7745, 58.2744)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5216CD #91CD16
analogous
#1636CD #5216CD #AE16CD
triadic
#5216CD #CD5216 #16CD52
tetradic
#5216CD #CD1636 #91CD16 #16CDAE
square
#5216CD #CD1636 #91CD16 #16CDAE
split-complementary
#5216CD #CDAE16 #36CD16
monochromatic
#260A5E #3C1096 #5216CD #7137EA #986EEF

Accessibility & contrast

On white

8.92
#5216CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5216CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5216CD
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5216CD#FFFFFF#000000##FFFFFF
##5216CD1.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ED2
Deuteranopia (green-blind)
#0044CA
Tritanopia (blue-blind)
#005579
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5216cd;
/* rgb */ color: rgb(82, 22, 205);
/* oklch */ color: oklch(43.8% 0.241 285.3);
Tailwind
colors: {
  custom: {
    50: '#9361de',
    500: '#5216cd',
    950: '#000000',
  },
}
SCSS
$custom: #5216cd;
$custom-light: #9361de;
$custom-dark: #000000;
JSON
{
  "hex": "#5216cd",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 205
  },
  "hsl": {
    "h": 259.672,
    "s": 80.617,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43816,
    "c": 0.24145,
    "h": 285.3
  },
  "luminance": 0.06775
}

Semantic roles & 50–950 ramp

primary
#5216CD
secondary
#B2D569
accent
#F731B6
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0615
muted
#7E7A83

Preview Lab

Preview with #5216CD

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

Preview Lab → · Contrast checker → · Palette generator →

#5216CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva