#5221A9#5221A9

#5221A9 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.197 H 291.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5221A9
RGBrgb(82, 33, 169)
HSLhsl(262, 67%, 40%)
HSVhsv(262, 80%, 66%)
CMYKcmyk(51.5%, 80.5%, 0%, 33.7%)
CIE-LABlab(28.76, 52.07, -63.70)
CIE-LCHlch(28.76, 82.27, 309.26°)
OKLaboklab(40.97% 0.0718 -0.183)
OKLCHoklch(40.97% 0.197 291.4)
XYZxyz(11.1829, 5.7457, 38.0482)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221A9 #78A921
analogous
#2134A9 #5221A9 #9621A9
triadic
#5221A9 #A95221 #21A952
tetradic
#5221A9 #A92134 #78A921 #21A996
square
#5221A9 #A92134 #78A921 #21A996
split-complementary
#5221A9 #A99621 #34A921
monochromatic
#200D43 #391776 #5221A9 #6C31D7 #9164E1

Accessibility & contrast

On white

9.77
#5221A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5221A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221A9
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221A9#FFFFFF#000000##FFFFFF
##5221A91.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5221a9;
/* rgb */ color: rgb(82, 33, 169);
/* oklch */ color: oklch(41.0% 0.197 291.4);
Tailwind
colors: {
  custom: {
    50: '#8c63c4',
    500: '#5221a9',
    950: '#000000',
  },
}
SCSS
$custom: #5221a9;
$custom-light: #8c63c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5221a9",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 169
  },
  "hsl": {
    "h": 261.618,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40967,
    "c": 0.19662,
    "h": 291.4
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5221A9

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

Preview Lab → · Contrast checker → · Palette generator →

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