#522DA9#522DA9

#522DA9 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.185 H 289.8°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#522DA9
RGBrgb(82, 45, 169)
HSLhsl(258, 58%, 42%)
HSVhsv(258, 73%, 66%)
CMYKcmyk(51.5%, 73.4%, 0%, 33.7%)
CIE-LABlab(30.72, 46.46, -60.48)
CIE-LCHlch(30.72, 76.26, 307.53°)
OKLaboklab(42.34% 0.0625 -0.1737)
OKLCHoklch(42.34% 0.185 289.8)
XYZxyz(11.5774, 6.5347, 38.1797)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DA9 #84A92D
analogous
#2D46A9 #522DA9 #902DA9
triadic
#522DA9 #A9522D #2DA952
tetradic
#522DA9 #A92D46 #84A92D #2DA990
square
#522DA9 #A92D46 #84A92D #2DA990
split-complementary
#522DA9 #A9902D #46A92D
monochromatic
#231348 #3B2079 #522DA9 #6E46CE #9476DA

Accessibility & contrast

On white

9.10
#522DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#522DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DA9
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DA9#FFFFFF#000000##FFFFFF
##522DA91.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#334E68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522da9;
/* rgb */ color: rgb(82, 45, 169);
/* oklch */ color: oklch(42.3% 0.185 289.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ac4',
    500: '#522da9',
    950: '#000000',
  },
}
SCSS
$custom: #522da9;
$custom-light: #8b6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#522da9",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 257.903,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42341,
    "c": 0.18459,
    "h": 289.8
  },
  "luminance": 0.06535
}

Semantic roles & 50–950 ramp

primary
#522DA9
secondary
#AAC26F
accent
#E147B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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