#5222A7#5222A7

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

Color values

HEX#5222A7
RGBrgb(82, 34, 167)
HSLhsl(262, 66%, 39%)
HSVhsv(262, 80%, 65%)
CMYKcmyk(50.9%, 79.6%, 0%, 34.5%)
CIE-LABlab(28.71, 51.11, -62.57)
CIE-LCHlch(28.71, 80.79, 309.25°)
OKLaboklab(40.88% 0.0718 -0.1797)
OKLCHoklch(40.88% 0.194 291.8)
XYZxyz(11.0248, 5.7275, 37.0763)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5222A7 #77A722
analogous
#2235A7 #5222A7 #9522A7
triadic
#5222A7 #A75222 #22A752
tetradic
#5222A7 #A72235 #77A722 #22A795
square
#5222A7 #A72235 #77A722 #22A795
split-complementary
#5222A7 #A79522 #35A722
monochromatic
#200D41 #391874 #5222A7 #6C31D5 #9164DF

Accessibility & contrast

On white

9.79
#5222A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5222A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5222A7
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5222A7#FFFFFF#000000##FFFFFF
##5222A71.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#354865
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5222a7;
/* rgb */ color: rgb(82, 34, 167);
/* oklch */ color: oklch(40.9% 0.194 291.8);
Tailwind
colors: {
  custom: {
    50: '#8c64c2',
    500: '#5222a7',
    950: '#000000',
  },
}
SCSS
$custom: #5222a7;
$custom-light: #8c64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5222a7",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 261.654,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40876,
    "c": 0.19354,
    "h": 291.8
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#5222A7
secondary
#A0C560
accent
#E93FAC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5222A7

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

Preview Lab → · Contrast checker → · Palette generator →

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