#5222A6#5222A6

#5222A6 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.192 H 292.0°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5222A6
RGBrgb(82, 34, 166)
HSLhsl(262, 66%, 39%)
HSVhsv(262, 80%, 65%)
CMYKcmyk(50.6%, 79.5%, 0%, 34.9%)
CIE-LABlab(28.62, 50.84, -62.12)
CIE-LCHlch(28.62, 80.28, 309.30°)
OKLaboklab(40.78% 0.0721 -0.1784)
OKLCHoklch(40.78% 0.192 292)
XYZxyz(10.9327, 5.6907, 36.5914)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5222A6 #76A622
analogous
#2234A6 #5222A6 #9422A6
triadic
#5222A6 #A65222 #22A652
tetradic
#5222A6 #A62234 #76A622 #22A694
square
#5222A6 #A62234 #76A622 #22A694
split-complementary
#5222A6 #A69422 #34A622
monochromatic
#200D40 #391873 #5222A6 #6C30D5 #9063DF

Accessibility & contrast

On white

9.82
#5222A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5222A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5222A6
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5222A6#FFFFFF#000000##FFFFFF
##5222A61.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#364864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5222a6;
/* rgb */ color: rgb(82, 34, 166);
/* oklch */ color: oklch(40.8% 0.192 292.0);
Tailwind
colors: {
  custom: {
    50: '#8c63c2',
    500: '#5222a6',
    950: '#000000',
  },
}
SCSS
$custom: #5222a6;
$custom-light: #8c63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5222a6",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 261.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4078,
    "c": 0.19244,
    "h": 292
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#5222A6
secondary
#A0C45F
accent
#E93FAB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5222A6

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

Preview Lab → · Contrast checker → · Palette generator →

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