#5222A9#5222A9

#5222A9 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.196 H 291.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5222A9
RGBrgb(82, 34, 169)
HSLhsl(261, 67%, 40%)
HSVhsv(261, 80%, 66%)
CMYKcmyk(51.5%, 79.9%, 0%, 33.7%)
CIE-LABlab(28.91, 51.64, -63.46)
CIE-LCHlch(28.91, 81.82, 309.14°)
OKLaboklab(41.07% 0.0711 -0.1823)
OKLCHoklch(41.07% 0.196 291.3)
XYZxyz(11.2111, 5.8020, 38.0576)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5222A9 #79A922
analogous
#2236A9 #5222A9 #9522A9
triadic
#5222A9 #A95222 #22A952
tetradic
#5222A9 #A92236 #79A922 #22A995
square
#5222A9 #A92236 #79A922 #22A995
split-complementary
#5222A9 #A99522 #36A922
monochromatic
#210D43 #391876 #5222A9 #6C32D6 #9165E0

Accessibility & contrast

On white

9.72
#5222A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5222A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5222A9
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5222A9#FFFFFF#000000##FFFFFF
##5222A91.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5222a9;
/* rgb */ color: rgb(82, 34, 169);
/* oklch */ color: oklch(41.1% 0.196 291.3);
Tailwind
colors: {
  custom: {
    50: '#8c64c4',
    500: '#5222a9',
    950: '#000000',
  },
}
SCSS
$custom: #5222a9;
$custom-light: #8c64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5222a9",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 261.333,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41068,
    "c": 0.19572,
    "h": 291.3
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#5222A9
secondary
#A2C561
accent
#E93EAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5222A9

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

Preview Lab → · Contrast checker → · Palette generator →

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