#522AAB#522AAB

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

Color values

HEX#522AAB
RGBrgb(82, 42, 171)
HSLhsl(259, 61%, 42%)
HSVhsv(259, 75%, 67%)
CMYKcmyk(52%, 75.4%, 0%, 32.9%)
CIE-LABlab(30.37, 48.52, -62.25)
CIE-LCHlch(30.37, 78.93, 307.94°)
OKLaboklab(42.15% 0.0645 -0.1789)
OKLCHoklch(42.15% 0.19 289.8)
XYZxyz(11.6562, 6.3895, 39.1393)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AAB #83AB2A
analogous
#2A42AB #522AAB #932AAB
triadic
#522AAB #AB522A #2AAB52
tetradic
#522AAB #AB2A42 #83AB2A #2AAB93
square
#522AAB #AB2A42 #83AB2A #2AAB93
split-complementary
#522AAB #AB932A #42AB2A
monochromatic
#231249 #3A1E7A #522AAB #6E42D1 #9473DD

Accessibility & contrast

On white

9.22
#522AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#522AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AAB
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AAB#FFFFFF#000000##FFFFFF
##522AAB1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#324D69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522aab;
/* rgb */ color: rgb(82, 42, 171);
/* oklch */ color: oklch(42.2% 0.190 289.8);
Tailwind
colors: {
  custom: {
    50: '#8c68c5',
    500: '#522aab',
    950: '#000000',
  },
}
SCSS
$custom: #522aab;
$custom-light: #8c68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#522aab",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 258.605,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42151,
    "c": 0.19014,
    "h": 289.8
  },
  "luminance": 0.0639
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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