#522A97#522A97

#522A97 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.167 H 294.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#522A97
RGBrgb(82, 42, 151)
HSLhsl(262, 56%, 38%)
HSVhsv(262, 72%, 59%)
CMYKcmyk(45.7%, 72.2%, 0%, 40.8%)
CIE-LABlab(28.60, 42.95, -53.02)
CIE-LCHlch(28.60, 68.23, 309.01°)
OKLaboklab(40.35% 0.0692 -0.1518)
OKLCHoklch(40.35% 0.167 294.5)
XYZxyz(9.8920, 5.6839, 29.8481)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A97 #6F972A
analogous
#2A3997 #522A97 #882A97
triadic
#522A97 #97522A #2A9752
tetradic
#522A97 #972A39 #6F972A #2A9788
square
#522A97 #972A39 #6F972A #2A9788
split-complementary
#522A97 #97882A #39972A
monochromatic
#1E0F37 #381D67 #522A97 #6C37C7 #8F67D5

Accessibility & contrast

On white

9.83
#522A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#522A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A97
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A97#FFFFFF#000000##FFFFFF
##522A971.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#3E465D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522a97;
/* rgb */ color: rgb(82, 42, 151);
/* oklch */ color: oklch(40.4% 0.167 294.5);
Tailwind
colors: {
  custom: {
    50: '#8967b6',
    500: '#522a97',
    950: '#000000',
  },
}
SCSS
$custom: #522a97;
$custom-light: #8967b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522a97",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 262.018,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40351,
    "c": 0.16682,
    "h": 294.5
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#522A97
secondary
#9ABB62
accent
#E048A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A97

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

Preview Lab → · Contrast checker → · Palette generator →

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