#5221A8#5221A8

#5221A8 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.196 H 291.7°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5221A8
RGBrgb(82, 33, 168)
HSLhsl(262, 67%, 39%)
HSVhsv(262, 80%, 66%)
CMYKcmyk(51.2%, 80.4%, 0%, 34.1%)
CIE-LABlab(28.66, 51.80, -63.25)
CIE-LCHlch(28.66, 81.76, 309.32°)
OKLaboklab(40.87% 0.0722 -0.1817)
OKLCHoklch(40.87% 0.196 291.7)
XYZxyz(11.0894, 5.7083, 37.5557)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221A8 #77A821
analogous
#2133A8 #5221A8 #9621A8
triadic
#5221A8 #A85221 #21A852
tetradic
#5221A8 #A82133 #77A821 #21A896
square
#5221A8 #A82133 #77A821 #21A896
split-complementary
#5221A8 #A89621 #33A821
monochromatic
#200D42 #391775 #5221A8 #6C30D6 #9163E0

Accessibility & contrast

On white

9.80
#5221A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5221A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221A8
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221A8#FFFFFF#000000##FFFFFF
##5221A81.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#344865
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5221a8;
/* rgb */ color: rgb(82, 33, 168);
/* oklch */ color: oklch(40.9% 0.196 291.7);
Tailwind
colors: {
  custom: {
    50: '#8c63c3',
    500: '#5221a8',
    950: '#000000',
  },
}
SCSS
$custom: #5221a8;
$custom-light: #8c63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5221a8",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 261.778,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4087,
    "c": 0.19554,
    "h": 291.7
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#5221A8
secondary
#A0C55F
accent
#EA3EAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5221A8

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

Preview Lab → · Contrast checker → · Palette generator →

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