#5221A7#5221A7

#5221A7 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.194 H 291.9°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5221A7
RGBrgb(82, 33, 167)
HSLhsl(262, 67%, 39%)
HSVhsv(262, 80%, 65%)
CMYKcmyk(50.9%, 80.2%, 0%, 34.5%)
CIE-LABlab(28.57, 51.54, -62.81)
CIE-LCHlch(28.57, 81.25, 309.37°)
OKLaboklab(40.77% 0.0725 -0.1804)
OKLCHoklch(40.77% 0.194 291.9)
XYZxyz(10.9966, 5.6711, 37.0670)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221A7 #76A721
analogous
#2133A7 #5221A7 #9521A7
triadic
#5221A7 #A75221 #21A752
tetradic
#5221A7 #A72133 #76A721 #21A795
square
#5221A7 #A72133 #76A721 #21A795
split-complementary
#5221A7 #A79521 #33A721
monochromatic
#200D41 #391774 #5221A7 #6C2FD6 #9062E0

Accessibility & contrast

On white

9.84
#5221A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5221A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221A7
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221A7#FFFFFF#000000##FFFFFF
##5221A71.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#354864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5221a7;
/* rgb */ color: rgb(82, 33, 167);
/* oklch */ color: oklch(40.8% 0.194 291.9);
Tailwind
colors: {
  custom: {
    50: '#8c63c2',
    500: '#5221a7',
    950: '#000000',
  },
}
SCSS
$custom: #5221a7;
$custom-light: #8c63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5221a7",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 261.94,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40773,
    "c": 0.19445,
    "h": 291.9
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5221A7

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

Preview Lab → · Contrast checker → · Palette generator →

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