#522EA3#522EA3

#522EA3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.176 H 290.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#522EA3
RGBrgb(82, 46, 163)
HSLhsl(258, 56%, 41%)
HSVhsv(258, 72%, 64%)
CMYKcmyk(49.7%, 71.8%, 0%, 36.1%)
CIE-LABlab(30.38, 44.23, -57.42)
CIE-LCHlch(30.38, 72.48, 307.61°)
OKLaboklab(41.94% 0.0629 -0.1647)
OKLCHoklch(41.94% 0.176 290.9)
XYZxyz(11.0657, 6.3917, 35.2939)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA3 #7FA32E
analogous
#2E44A3 #522EA3 #8C2EA3
triadic
#522EA3 #A3522E #2EA352
tetradic
#522EA3 #A32E44 #7FA32E #2EA38C
square
#522EA3 #A32E44 #7FA32E #2EA38C
split-complementary
#522EA3 #A38C2E #44A32E
monochromatic
#221344 #3A2173 #522EA3 #6D44CA #9274D8

Accessibility & contrast

On white

9.22
#522EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#522EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA3
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA3#FFFFFF#000000##FFFFFF
##522EA31.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#374C65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522ea3;
/* rgb */ color: rgb(82, 46, 163);
/* oklch */ color: oklch(41.9% 0.176 290.9);
Tailwind
colors: {
  custom: {
    50: '#8a6abf',
    500: '#522ea3',
    950: '#000000',
  },
}
SCSS
$custom: #522ea3;
$custom-light: #8a6abf;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea3",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 258.462,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.17633,
    "h": 290.9
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#522EA3
secondary
#A6BF6D
accent
#DF49B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #522EA3

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

Preview Lab → · Contrast checker → · Palette generator →

#522EA3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva