#522AA2#522AA2

#522AA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.180 H 291.8°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#522AA2
RGBrgb(82, 42, 162)
HSLhsl(260, 59%, 40%)
HSVhsv(260, 74%, 64%)
CMYKcmyk(49.4%, 74.1%, 0%, 36.5%)
CIE-LABlab(29.56, 46.01, -58.16)
CIE-LCHlch(29.56, 74.16, 308.35°)
OKLaboklab(41.33% 0.0667 -0.1669)
OKLCHoklch(41.33% 0.18 291.8)
XYZxyz(10.8274, 6.0580, 34.7742)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA2 #7AA22A
analogous
#2A3EA2 #522AA2 #8E2AA2
triadic
#522AA2 #A2522A #2AA252
tetradic
#522AA2 #A22A3E #7AA22A #2AA28E
square
#522AA2 #A22A3E #7AA22A #2AA28E
split-complementary
#522AA2 #A28E2A #3EA22A
monochromatic
#211141 #391D71 #522AA2 #6D3DCD #916DD9

Accessibility & contrast

On white

9.50
#522AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#522AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AA2
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AA2#FFFFFF#000000##FFFFFF
##522AA21.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#384A64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522aa2;
/* rgb */ color: rgb(82, 42, 162);
/* oklch */ color: oklch(41.3% 0.180 291.8);
Tailwind
colors: {
  custom: {
    50: '#8b68bf',
    500: '#522aa2',
    950: '#000000',
  },
}
SCSS
$custom: #522aa2;
$custom-light: #8b68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa2",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 260,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.41326,
    "c": 0.17973,
    "h": 291.8
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#522AA2
secondary
#A3C068
accent
#E246AE
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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