#5220A5#5220A5

#5220A5 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.193 H 292.5°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5220A5
RGBrgb(82, 32, 165)
HSLhsl(263, 68%, 39%)
HSVhsv(263, 81%, 65%)
CMYKcmyk(50.3%, 80.6%, 0%, 35.3%)
CIE-LABlab(28.23, 51.43, -62.16)
CIE-LCHlch(28.23, 80.67, 309.60°)
OKLaboklab(40.48% 0.0738 -0.1785)
OKLCHoklch(40.48% 0.193 292.5)
XYZxyz(10.7858, 5.5431, 36.0916)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220A5 #73A520
analogous
#2031A5 #5220A5 #9420A5
triadic
#5220A5 #A55220 #20A552
tetradic
#5220A5 #A52031 #73A520 #20A594
square
#5220A5 #A52031 #73A520 #20A594
split-complementary
#5220A5 #A59420 #31A520
monochromatic
#1F0C3E #391672 #5220A5 #6C2CD6 #905FE0

Accessibility & contrast

On white

9.96
#5220A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5220A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5220A5
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220A5#FFFFFF#000000##FFFFFF
##5220A51.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#374763
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5220a5;
/* rgb */ color: rgb(82, 32, 165);
/* oklch */ color: oklch(40.5% 0.193 292.5);
Tailwind
colors: {
  custom: {
    50: '#8c62c1',
    500: '#5220a5',
    950: '#000000',
  },
}
SCSS
$custom: #5220a5;
$custom-light: #8c62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5220a5",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 262.556,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4048,
    "c": 0.19319,
    "h": 292.5
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#5220A5
secondary
#9DC55C
accent
#EA3DA9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5220A5

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

Preview Lab → · Contrast checker → · Palette generator →

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