#522AAA#522AAA

#522AAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.189 H 290.0°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#522AAA
RGBrgb(82, 42, 170)
HSLhsl(259, 60%, 42%)
HSVhsv(259, 75%, 67%)
CMYKcmyk(51.8%, 75.3%, 0%, 33.3%)
CIE-LABlab(30.28, 48.24, -61.80)
CIE-LCHlch(30.28, 78.40, 307.98°)
OKLaboklab(42.06% 0.0647 -0.1776)
OKLCHoklch(42.06% 0.189 290)
XYZxyz(11.5612, 6.3515, 38.6392)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AAA #82AA2A
analogous
#2A42AA #522AAA #922AAA
triadic
#522AAA #AA522A #2AAA52
tetradic
#522AAA #AA2A42 #82AA2A #2AAA92
square
#522AAA #AA2A42 #82AA2A #2AAA92
split-complementary
#522AAA #AA922A #42AA2A
monochromatic
#231248 #3A1E79 #522AAA #6E41D0 #9372DC

Accessibility & contrast

On white

9.25
#522AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#522AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AAA
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AAA#FFFFFF#000000##FFFFFF
##522AAA1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#324D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522aaa;
/* rgb */ color: rgb(82, 42, 170);
/* oklch */ color: oklch(42.1% 0.189 290.0);
Tailwind
colors: {
  custom: {
    50: '#8c68c4',
    500: '#522aaa',
    950: '#000000',
  },
}
SCSS
$custom: #522aaa;
$custom-light: #8c68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#522aaa",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 258.75,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42058,
    "c": 0.18898,
    "h": 290
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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