#522AA5#522AA5

#522AA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.183 H 291.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#522AA5
RGBrgb(82, 42, 165)
HSLhsl(260, 59%, 41%)
HSVhsv(260, 75%, 65%)
CMYKcmyk(50.3%, 74.5%, 0%, 35.3%)
CIE-LABlab(29.83, 46.85, -59.53)
CIE-LCHlch(29.83, 75.76, 308.20°)
OKLaboklab(41.6% 0.066 -0.1709)
OKLCHoklch(41.6% 0.183 291.1)
XYZxyz(11.0972, 6.1659, 36.1954)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA5 #7DA52A
analogous
#2A40A5 #522AA5 #8F2AA5
triadic
#522AA5 #A5522A #2AA552
tetradic
#522AA5 #A52A40 #7DA52A #2AA58F
square
#522AA5 #A52A40 #7DA52A #2AA58F
split-complementary
#522AA5 #A58F2A #40A52A
monochromatic
#221143 #3A1E74 #522AA5 #6D3ECE #926FDA

Accessibility & contrast

On white

9.40
#522AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522AA5
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AA5#FFFFFF#000000##FFFFFF
##522AA51.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#364B65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522aa5;
/* rgb */ color: rgb(82, 42, 165);
/* oklch */ color: oklch(41.6% 0.183 291.1);
Tailwind
colors: {
  custom: {
    50: '#8b68c1',
    500: '#522aa5',
    950: '#000000',
  },
}
SCSS
$custom: #522aa5;
$custom-light: #8b68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa5",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 259.512,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41598,
    "c": 0.18321,
    "h": 291.1
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#522AA5
secondary
#A5C169
accent
#E345AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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