#5220A6#5220A6

#5220A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.194 H 292.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5220A6
RGBrgb(82, 32, 166)
HSLhsl(262, 68%, 39%)
HSVhsv(262, 81%, 65%)
CMYKcmyk(50.6%, 80.7%, 0%, 34.9%)
CIE-LABlab(28.33, 51.69, -62.60)
CIE-LCHlch(28.33, 81.19, 309.55°)
OKLaboklab(40.58% 0.0735 -0.1798)
OKLCHoklch(40.58% 0.194 292.2)
XYZxyz(10.8772, 5.5796, 36.5729)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5220A6 #74A620
analogous
#2031A6 #5220A6 #9520A6
triadic
#5220A6 #A65220 #20A652
tetradic
#5220A6 #A62031 #74A620 #20A695
square
#5220A6 #A62031 #74A620 #20A695
split-complementary
#5220A6 #A69520 #31A620
monochromatic
#1F0C3F #391673 #5220A6 #6C2DD6 #9060E0

Accessibility & contrast

On white

9.92
#5220A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5220A6
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5220A6#FFFFFF#000000##FFFFFF
##5220A61.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#364764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5220a6;
/* rgb */ color: rgb(82, 32, 166);
/* oklch */ color: oklch(40.6% 0.194 292.2);
Tailwind
colors: {
  custom: {
    50: '#8c63c2',
    500: '#5220a6',
    950: '#000000',
  },
}
SCSS
$custom: #5220a6;
$custom-light: #8c63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5220a6",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 262.388,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.19427,
    "h": 292.2
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#5220A6
secondary
#9EC55D
accent
#EB3DAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5220A6

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

Preview Lab → · Contrast checker → · Palette generator →

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