#522EA2#522EA2

#522EA2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.175 H 291.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#522EA2
RGBrgb(82, 46, 162)
HSLhsl(259, 56%, 41%)
HSVhsv(259, 72%, 64%)
CMYKcmyk(49.4%, 71.6%, 0%, 36.5%)
CIE-LABlab(30.29, 43.95, -56.96)
CIE-LCHlch(30.29, 71.94, 307.65°)
OKLaboklab(41.85% 0.0631 -0.1634)
OKLCHoklch(41.85% 0.175 291.1)
XYZxyz(10.9764, 6.3560, 34.8239)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EA2 #7EA22E
analogous
#2E44A2 #522EA2 #8C2EA2
triadic
#522EA2 #A2522E #2EA252
tetradic
#522EA2 #A22E44 #7EA22E #2EA28C
square
#522EA2 #A22E44 #7EA22E #2EA28C
split-complementary
#522EA2 #A28C2E #44A22E
monochromatic
#221343 #3A2072 #522EA2 #6D43CA #9273D7

Accessibility & contrast

On white

9.25
#522EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#522EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EA2
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EA2#FFFFFF#000000##FFFFFF
##522EA21.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#384C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ea2;
/* rgb */ color: rgb(82, 46, 162);
/* oklch */ color: oklch(41.8% 0.175 291.1);
Tailwind
colors: {
  custom: {
    50: '#8a6abe',
    500: '#522ea2',
    950: '#000000',
  },
}
SCSS
$custom: #522ea2;
$custom-light: #8a6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#522ea2",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 258.621,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41847,
    "c": 0.17513,
    "h": 291.1
  },
  "luminance": 0.06356
}

Semantic roles & 50–950 ramp

primary
#522EA2
secondary
#A5BF6D
accent
#DF49B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #522EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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