#522AAC#522AAC

#522AAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.191 H 289.6°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#522AAC
RGBrgb(82, 42, 172)
HSLhsl(258, 61%, 42%)
HSVhsv(258, 76%, 67%)
CMYKcmyk(52.3%, 75.6%, 0%, 32.5%)
CIE-LABlab(30.47, 48.80, -62.70)
CIE-LCHlch(30.47, 79.45, 307.90°)
OKLaboklab(42.24% 0.0642 -0.1802)
OKLCHoklch(42.24% 0.191 289.6)
XYZxyz(11.7519, 6.4278, 39.6432)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AAC #84AC2A
analogous
#2A43AC #522AAC #932AAC
triadic
#522AAC #AC522A #2AAC52
tetradic
#522AAC #AC2A43 #84AC2A #2AAC93
square
#522AAC #AC2A43 #84AC2A #2AAC93
split-complementary
#522AAC #AC932A #43AC2A
monochromatic
#23124A #3B1E7B #522AAC #6E42D1 #9473DD

Accessibility & contrast

On white

9.19
#522AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#522AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AAC
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AAC#FFFFFF#000000##FFFFFF
##522AAC1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#314E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522aac;
/* rgb */ color: rgb(82, 42, 172);
/* oklch */ color: oklch(42.2% 0.191 289.6);
Tailwind
colors: {
  custom: {
    50: '#8c68c6',
    500: '#522aac',
    950: '#000000',
  },
}
SCSS
$custom: #522aac;
$custom-light: #8c68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#522aac",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 258.462,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42244,
    "c": 0.19129,
    "h": 289.6
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#522AAC
secondary
#AAC46D
accent
#E444B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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