#522AA4#522AA4

#522AA4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.182 H 291.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#522AA4
RGBrgb(82, 42, 164)
HSLhsl(260, 59%, 40%)
HSVhsv(260, 74%, 64%)
CMYKcmyk(50%, 74.4%, 0%, 35.7%)
CIE-LABlab(29.74, 46.57, -59.08)
CIE-LCHlch(29.74, 75.22, 308.25°)
OKLaboklab(41.51% 0.0663 -0.1696)
OKLCHoklch(41.51% 0.182 291.3)
XYZxyz(11.0066, 6.1297, 35.7180)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA4 #7CA42A
analogous
#2A3FA4 #522AA4 #8F2AA4
triadic
#522AA4 #A4522A #2AA452
tetradic
#522AA4 #A42A3F #7CA42A #2AA48F
square
#522AA4 #A42A3F #7CA42A #2AA48F
split-complementary
#522AA4 #A48F2A #3FA42A
monochromatic
#211143 #3A1E73 #522AA4 #6D3ECD #926EDA

Accessibility & contrast

On white

9.43
#522AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#522AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AA4
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AA4#FFFFFF#000000##FFFFFF
##522AA41.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#374B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522aa4;
/* rgb */ color: rgb(82, 42, 164);
/* oklch */ color: oklch(41.5% 0.182 291.3);
Tailwind
colors: {
  custom: {
    50: '#8b68c0',
    500: '#522aa4',
    950: '#000000',
  },
}
SCSS
$custom: #522aa4;
$custom-light: #8b68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa4",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 259.672,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41507,
    "c": 0.18205,
    "h": 291.3
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#522AA4
secondary
#A4C169
accent
#E245AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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