#522A9A#522A9A

#522A9A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.170 H 293.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#522A9A
RGBrgb(82, 42, 154)
HSLhsl(261, 57%, 38%)
HSVhsv(261, 73%, 60%)
CMYKcmyk(46.8%, 72.7%, 0%, 39.6%)
CIE-LABlab(28.86, 43.78, -54.44)
CIE-LCHlch(28.86, 69.86, 308.81°)
OKLaboklab(40.61% 0.0685 -0.156)
OKLCHoklch(40.61% 0.17 293.7)
XYZxyz(10.1388, 5.7826, 31.1475)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A9A #729A2A
analogous
#2A3A9A #522A9A #8A2A9A
triadic
#522A9A #9A522A #2A9A52
tetradic
#522A9A #9A2A3A #729A2A #2A9A8A
square
#522A9A #9A2A3A #729A2A #2A9A8A
split-complementary
#522A9A #9A8A2A #3A9A2A
monochromatic
#1F103A #381D6A #522A9A #6C38C9 #9068D6

Accessibility & contrast

On white

9.74
#522A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#522A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A9A
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A9A#FFFFFF#000000##FFFFFF
##522A9A1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#3D475F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522a9a;
/* rgb */ color: rgb(82, 42, 154);
/* oklch */ color: oklch(40.6% 0.170 293.7);
Tailwind
colors: {
  custom: {
    50: '#8a67b9',
    500: '#522a9a',
    950: '#000000',
  },
}
SCSS
$custom: #522a9a;
$custom-light: #8a67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522a9a",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 261.429,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40613,
    "c": 0.17036,
    "h": 293.7
  },
  "luminance": 0.05783
}

Semantic roles & 50–950 ramp

primary
#522A9A
secondary
#9DBC63
accent
#E047AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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