#522DA4#522DA4

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

Color values

HEX#522DA4
RGBrgb(82, 45, 164)
HSLhsl(259, 57%, 41%)
HSVhsv(259, 73%, 64%)
CMYKcmyk(50%, 72.6%, 0%, 35.7%)
CIE-LABlab(30.28, 45.04, -58.19)
CIE-LCHlch(30.28, 73.58, 307.74°)
OKLaboklab(41.89% 0.0636 -0.167)
OKLCHoklch(41.89% 0.179 290.8)
XYZxyz(11.1170, 6.3505, 35.7548)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA4 #7FA42D
analogous
#2D44A4 #522DA4 #8D2DA4
triadic
#522DA4 #A4522D #2DA452
tetradic
#522DA4 #A42D44 #7FA42D #2DA48D
square
#522DA4 #A42D44 #7FA42D #2DA48D
split-complementary
#522DA4 #A48D2D #44A42D
monochromatic
#221344 #3A2074 #522DA4 #6D43CB #9273D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522DA4#FFFFFF#000000##FFFFFF
##522DA41.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)
#0049A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#374C65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522da4;
/* rgb */ color: rgb(82, 45, 164);
/* oklch */ color: oklch(41.9% 0.179 290.8);
Tailwind
colors: {
  custom: {
    50: '#8b69c0',
    500: '#522da4',
    950: '#000000',
  },
}
SCSS
$custom: #522da4;
$custom-light: #8b69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#522da4",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 258.655,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41891,
    "c": 0.17869,
    "h": 290.8
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#522DA4
secondary
#A6C06D
accent
#E048B1
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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