#5220A9#5220A9

#5220A9 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.198 H 291.5°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5220A9
RGBrgb(82, 32, 169)
HSLhsl(262, 68%, 39%)
HSVhsv(262, 81%, 66%)
CMYKcmyk(51.5%, 81.1%, 0%, 33.7%)
CIE-LABlab(28.62, 52.48, -63.93)
CIE-LCHlch(28.62, 82.71, 309.38°)
OKLaboklab(40.87% 0.0725 -0.1837)
OKLCHoklch(40.87% 0.198 291.5)
XYZxyz(11.1556, 5.6910, 38.0391)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220A9 #77A920
analogous
#2033A9 #5220A9 #9720A9
triadic
#5220A9 #A95220 #20A952
tetradic
#5220A9 #A92033 #77A920 #20A997
square
#5220A9 #A92033 #77A920 #20A997
split-complementary
#5220A9 #A99720 #33A920
monochromatic
#200D42 #391676 #5220A9 #6C2FD8 #9162E1

Accessibility & contrast

On white

9.82
#5220A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5220A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5220A9
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220A9#FFFFFF#000000##FFFFFF
##5220A91.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#344865
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5220a9;
/* rgb */ color: rgb(82, 32, 169);
/* oklch */ color: oklch(40.9% 0.198 291.5);
Tailwind
colors: {
  custom: {
    50: '#8c63c4',
    500: '#5220a9',
    950: '#000000',
  },
}
SCSS
$custom: #5220a9;
$custom-light: #8c63c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5220a9",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 261.898,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40868,
    "c": 0.1975,
    "h": 291.5
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5220A9

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

Preview Lab → · Contrast checker → · Palette generator →

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