#522A99#522A99

#522A99 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.169 H 294.0°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#522A99
RGBrgb(82, 42, 153)
HSLhsl(262, 57%, 38%)
HSVhsv(262, 73%, 60%)
CMYKcmyk(46.4%, 72.5%, 0%, 40%)
CIE-LABlab(28.77, 43.50, -53.97)
CIE-LCHlch(28.77, 69.32, 308.87°)
OKLaboklab(40.53% 0.0688 -0.1546)
OKLCHoklch(40.53% 0.169 294)
XYZxyz(10.0558, 5.7494, 30.7107)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A99 #71992A
analogous
#2A3999 #522A99 #892A99
triadic
#522A99 #99522A #2A9952
tetradic
#522A99 #992A39 #71992A #2A9989
square
#522A99 #992A39 #71992A #2A9989
split-complementary
#522A99 #99892A #39992A
monochromatic
#1F1039 #381D69 #522A99 #6C38C8 #8F68D6

Accessibility & contrast

On white

9.77
#522A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#522A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A99
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A99#FFFFFF#000000##FFFFFF
##522A991.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#3D465F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522a99;
/* rgb */ color: rgb(82, 42, 153);
/* oklch */ color: oklch(40.5% 0.169 294.0);
Tailwind
colors: {
  custom: {
    50: '#8967b8',
    500: '#522a99',
    950: '#000000',
  },
}
SCSS
$custom: #522a99;
$custom-light: #8967b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522a99",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 261.622,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.16919,
    "h": 294
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#522A99
secondary
#9CBC63
accent
#E048A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A99

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

Preview Lab → · Contrast checker → · Palette generator →

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