#522AA0#522AA0

#522AA0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.177 H 292.3°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#522AA0
RGBrgb(82, 42, 160)
HSLhsl(260, 58%, 40%)
HSVhsv(260, 74%, 63%)
CMYKcmyk(48.8%, 73.8%, 0%, 37.3%)
CIE-LABlab(29.38, 45.45, -57.24)
CIE-LCHlch(29.38, 73.09, 308.45°)
OKLaboklab(41.15% 0.0672 -0.1642)
OKLCHoklch(41.15% 0.177 292.3)
XYZxyz(10.6510, 5.9875, 33.8454)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AA0 #78A02A
analogous
#2A3DA0 #522AA0 #8D2AA0
triadic
#522AA0 #A0522A #2AA052
tetradic
#522AA0 #A02A3D #78A02A #2AA08D
square
#522AA0 #A02A3D #78A02A #2AA08D
split-complementary
#522AA0 #A08D2A #3DA02A
monochromatic
#20113F #391D70 #522AA0 #6C3CCC #916CD8

Accessibility & contrast

On white

9.56
#522AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#522AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AA0
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AA0#FFFFFF#000000##FFFFFF
##522AA01.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#394962
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522aa0;
/* rgb */ color: rgb(82, 42, 160);
/* oklch */ color: oklch(41.1% 0.177 292.3);
Tailwind
colors: {
  custom: {
    50: '#8a67bd',
    500: '#522aa0',
    950: '#000000',
  },
}
SCSS
$custom: #522aa0;
$custom-light: #8a67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#522aa0",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 260.339,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41146,
    "c": 0.1774,
    "h": 292.3
  },
  "luminance": 0.05988
}

Semantic roles & 50–950 ramp

primary
#522AA0
secondary
#A1BF67
accent
#E246AD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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