#5221A5#5221A5

#5221A5 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.192 H 292.4°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5221A5
RGBrgb(82, 33, 165)
HSLhsl(262, 67%, 39%)
HSVhsv(262, 80%, 65%)
CMYKcmyk(50.3%, 80%, 0%, 35.3%)
CIE-LABlab(28.37, 51.01, -61.92)
CIE-LCHlch(28.37, 80.22, 309.48°)
OKLaboklab(40.58% 0.0731 -0.1778)
OKLCHoklch(40.58% 0.192 292.4)
XYZxyz(10.8132, 5.5978, 36.1007)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5221A5 #74A521
analogous
#2132A5 #5221A5 #9421A5
triadic
#5221A5 #A55221 #21A552
tetradic
#5221A5 #A52132 #74A521 #21A594
square
#5221A5 #A52132 #74A521 #21A594
split-complementary
#5221A5 #A59421 #32A521
monochromatic
#1F0D3F #391772 #5221A5 #6C2ED5 #9061DF

Accessibility & contrast

On white

9.91
#5221A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5221A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5221A5
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5221A5#FFFFFF#000000##FFFFFF
##5221A51.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#364763
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5221a5;
/* rgb */ color: rgb(82, 33, 165);
/* oklch */ color: oklch(40.6% 0.192 292.4);
Tailwind
colors: {
  custom: {
    50: '#8c63c1',
    500: '#5221a5',
    950: '#000000',
  },
}
SCSS
$custom: #5221a5;
$custom-light: #8c63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5221a5",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 262.273,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40581,
    "c": 0.19228,
    "h": 292.4
  },
  "luminance": 0.05598
}

Semantic roles & 50–950 ramp

primary
#5221A5
secondary
#9EC45E
accent
#EA3EAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5221A5

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

Preview Lab → · Contrast checker → · Palette generator →

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