#522AA9#522AA9

#522AA9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.188 H 290.2°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#522AA9
RGBrgb(82, 42, 169)
HSLhsl(259, 60%, 41%)
HSVhsv(259, 75%, 66%)
CMYKcmyk(51.5%, 75.1%, 0%, 33.7%)
CIE-LABlab(30.19, 47.96, -61.35)
CIE-LCHlch(30.19, 77.87, 308.02°)
OKLaboklab(41.97% 0.065 -0.1762)
OKLCHoklch(41.97% 0.188 290.2)
XYZxyz(11.4670, 6.3139, 38.1429)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA9 #81A92A
analogous
#2A41A9 #522AA9 #922AA9
triadic
#522AA9 #A9522A #2AA952
tetradic
#522AA9 #A92A41 #81A92A #2AA992
square
#522AA9 #A92A41 #81A92A #2AA992
split-complementary
#522AA9 #A9922A #41A92A
monochromatic
#221247 #3A1E78 #522AA9 #6E41D0 #9372DC

Accessibility & contrast

On white

9.28
#522AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AA9
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AA9#FFFFFF#000000##FFFFFF
##522AA91.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#334D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522aa9;
/* rgb */ color: rgb(82, 42, 169);
/* oklch */ color: oklch(42.0% 0.188 290.2);
Tailwind
colors: {
  custom: {
    50: '#8c68c4',
    500: '#522aa9',
    950: '#000000',
  },
}
SCSS
$custom: #522aa9;
$custom-light: #8c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa9",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 258.898,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41966,
    "c": 0.18784,
    "h": 290.2
  },
  "luminance": 0.06314
}

Semantic roles & 50–950 ramp

primary
#522AA9
secondary
#A8C36C
accent
#E344B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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