#5217A0#5217A0

#5217A0 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.2% C 0.195 H 294.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5217A0
RGBrgb(82, 23, 160)
HSLhsl(266, 75%, 36%)
HSVhsv(266, 86%, 63%)
CMYKcmyk(48.8%, 85.6%, 0%, 37.3%)
CIE-LABlab(26.58, 53.54, -61.84)
CIE-LCHlch(26.58, 81.80, 310.89°)
OKLaboklab(39.19% 0.0815 -0.1775)
OKLCHoklch(39.19% 0.195 294.6)
XYZxyz(10.1295, 4.9444, 33.6715)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5217A0 #65A017
analogous
#1721A0 #5217A0 #9617A0
triadic
#5217A0 #A05217 #17A052
tetradic
#5217A0 #A01721 #65A017 #17A096
square
#5217A0 #A01721 #65A017 #17A096
split-complementary
#5217A0 #A09617 #21A017
monochromatic
#1B0835 #370F6A #5217A0 #6D1FD6 #8E4CE5

Accessibility & contrast

On white

10.56
#5217A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5217A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5217A0
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5217A0#FFFFFF#000000##FFFFFF
##5217A01.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#3A415E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5217a0;
/* rgb */ color: rgb(82, 23, 160);
/* oklch */ color: oklch(39.2% 0.195 294.6);
Tailwind
colors: {
  custom: {
    50: '#8c5ebd',
    500: '#5217a0',
    950: '#000000',
  },
}
SCSS
$custom: #5217a0;
$custom-light: #8c5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#5217a0",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 265.839,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39191,
    "c": 0.1953,
    "h": 294.6
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#5217A0
secondary
#92C74C
accent
#F136A1
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5217A0

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

Preview Lab → · Contrast checker → · Palette generator →

#5217A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva