#5220A7#5220A7

#5220A7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.195 H 292.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5220A7
RGBrgb(82, 32, 167)
HSLhsl(262, 68%, 39%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(50.9%, 80.8%, 0%, 34.5%)
CIE-LABlab(28.42, 51.95, -63.05)
CIE-LCHlch(28.42, 81.69, 309.49°)
OKLaboklab(40.67% 0.0732 -0.1811)
OKLCHoklch(40.67% 0.195 292)
XYZxyz(10.9693, 5.6165, 37.0578)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220A7 #75A720
analogous
#2032A7 #5220A7 #9620A7
triadic
#5220A7 #A75220 #20A752
tetradic
#5220A7 #A72032 #75A720 #20A796
square
#5220A7 #A72032 #75A720 #20A796
split-complementary
#5220A7 #A79620 #32A720
monochromatic
#200C40 #391674 #5220A7 #6C2DD7 #9061E1

Accessibility & contrast

On white

9.89
#5220A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5220A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5220A7
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220A7#FFFFFF#000000##FFFFFF
##5220A71.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#354764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5220a7;
/* rgb */ color: rgb(82, 32, 167);
/* oklch */ color: oklch(40.7% 0.195 292.0);
Tailwind
colors: {
  custom: {
    50: '#8c63c2',
    500: '#5220a7',
    950: '#000000',
  },
}
SCSS
$custom: #5220a7;
$custom-light: #8c63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5220a7",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 262.222,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40674,
    "c": 0.19535,
    "h": 292
  },
  "luminance": 0.05617
}

Semantic roles & 50–950 ramp

primary
#5220A7
secondary
#9FC55D
accent
#EB3DAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5220A7

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

Preview Lab → · Contrast checker → · Palette generator →

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