#522A96#522A96

#522A96 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.166 H 294.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#522A96
RGBrgb(82, 42, 150)
HSLhsl(262, 56%, 38%)
HSVhsv(262, 72%, 59%)
CMYKcmyk(45.3%, 72%, 0%, 41.2%)
CIE-LABlab(28.52, 42.67, -52.55)
CIE-LCHlch(28.52, 67.69, 309.08°)
OKLaboklab(40.27% 0.0694 -0.1504)
OKLCHoklch(40.27% 0.166 294.8)
XYZxyz(9.8112, 5.6515, 29.4222)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A96 #6E962A
analogous
#2A3896 #522A96 #882A96
triadic
#522A96 #96522A #2A9652
tetradic
#522A96 #962A38 #6E962A #2A9688
square
#522A96 #962A38 #6E962A #2A9688
split-complementary
#522A96 #96882A #38962A
monochromatic
#1E0F36 #381D66 #522A96 #6C37C6 #8F66D4

Accessibility & contrast

On white

9.86
#522A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#522A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A96
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A96#FFFFFF#000000##FFFFFF
##522A961.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#3F455D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522a96;
/* rgb */ color: rgb(82, 42, 150);
/* oklch */ color: oklch(40.3% 0.166 294.8);
Tailwind
colors: {
  custom: {
    50: '#8967b6',
    500: '#522a96',
    950: '#000000',
  },
}
SCSS
$custom: #522a96;
$custom-light: #8967b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522a96",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 262.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40265,
    "c": 0.16564,
    "h": 294.8
  },
  "luminance": 0.05652
}

Semantic roles & 50–950 ramp

primary
#522A96
secondary
#99BA61
accent
#E048A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A96

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

Preview Lab → · Contrast checker → · Palette generator →

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