#5220A8#5220A8

#5220A8 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.196 H 291.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5220A8
RGBrgb(82, 32, 168)
HSLhsl(262, 68%, 39%)
HSVhsv(262, 81%, 66%)
CMYKcmyk(51.2%, 81%, 0%, 34.1%)
CIE-LABlab(28.52, 52.22, -63.49)
CIE-LCHlch(28.52, 82.20, 309.44°)
OKLaboklab(40.77% 0.0729 -0.1824)
OKLCHoklch(40.77% 0.196 291.8)
XYZxyz(11.0621, 5.6536, 37.5466)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220A8 #76A820
analogous
#2032A8 #5220A8 #9620A8
triadic
#5220A8 #A85220 #20A852
tetradic
#5220A8 #A82032 #76A820 #20A896
square
#5220A8 #A82032 #76A820 #20A896
split-complementary
#5220A8 #A89620 #32A820
monochromatic
#200C41 #391675 #5220A8 #6C2ED7 #9061E1

Accessibility & contrast

On white

9.86
#5220A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5220A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5220A8
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220A8#FFFFFF#000000##FFFFFF
##5220A81.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#344865
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5220a8;
/* rgb */ color: rgb(82, 32, 168);
/* oklch */ color: oklch(40.8% 0.196 291.8);
Tailwind
colors: {
  custom: {
    50: '#8c63c3',
    500: '#5220a8',
    950: '#000000',
  },
}
SCSS
$custom: #5220a8;
$custom-light: #8c63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5220a8",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 262.059,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40771,
    "c": 0.19642,
    "h": 291.8
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#5220A8
secondary
#A0C65E
accent
#EB3DAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5220A8

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

Preview Lab → · Contrast checker → · Palette generator →

#5220A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva