#5221A4#5221A4

#5221A4 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.191 H 292.6°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5221A4
RGBrgb(82, 33, 164)
HSLhsl(262, 66%, 39%)
HSVhsv(262, 80%, 64%)
CMYKcmyk(50%, 79.9%, 0%, 35.7%)
CIE-LABlab(28.28, 50.74, -61.47)
CIE-LCHlch(28.28, 79.71, 309.54°)
OKLaboklab(40.49% 0.0735 -0.1765)
OKLCHoklch(40.49% 0.191 292.6)
XYZxyz(10.7225, 5.5615, 35.6233)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221A4 #73A421
analogous
#2131A4 #5221A4 #9321A4
triadic
#5221A4 #A45221 #21A452
tetradic
#5221A4 #A42131 #73A421 #21A493
square
#5221A4 #A42131 #73A421 #21A493
split-complementary
#5221A4 #A49321 #31A421
monochromatic
#1F0C3E #391771 #5221A4 #6C2DD5 #9060DF

Accessibility & contrast

On white

9.94
#5221A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5221A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221A4
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221A4#FFFFFF#000000##FFFFFF
##5221A41.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5221a4;
/* rgb */ color: rgb(82, 33, 164);
/* oklch */ color: oklch(40.5% 0.191 292.6);
Tailwind
colors: {
  custom: {
    50: '#8c63c0',
    500: '#5221a4',
    950: '#000000',
  },
}
SCSS
$custom: #5221a4;
$custom-light: #8c63c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5221a4",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 262.443,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40485,
    "c": 0.19119,
    "h": 292.6
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#5221A4
secondary
#9DC45D
accent
#E93EA9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5221A4

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

Preview Lab → · Contrast checker → · Palette generator →

#5221A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva