#522A9D#522A9D

#522A9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.174 H 293.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#522A9D
RGBrgb(82, 42, 157)
HSLhsl(261, 58%, 39%)
HSVhsv(261, 73%, 62%)
CMYKcmyk(47.8%, 73.2%, 0%, 38.4%)
CIE-LABlab(29.12, 44.62, -55.85)
CIE-LCHlch(29.12, 71.48, 308.62°)
OKLaboklab(40.88% 0.0679 -0.1601)
OKLCHoklch(40.88% 0.174 293)
XYZxyz(10.3918, 5.8837, 32.4799)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A9D #759D2A
analogous
#2A3B9D #522A9D #8C2A9D
triadic
#522A9D #9D522A #2A9D52
tetradic
#522A9D #9D2A3B #759D2A #2A9D8C
square
#522A9D #9D2A3B #759D2A #2A9D8C
split-complementary
#522A9D #9D8C2A #3B9D2A
monochromatic
#20103C #391D6D #522A9D #6C3ACA #906AD7

Accessibility & contrast

On white

9.65
#522A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#522A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A9D
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A9D#FFFFFF#000000##FFFFFF
##522A9D1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#3B4861
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522a9d;
/* rgb */ color: rgb(82, 42, 157);
/* oklch */ color: oklch(40.9% 0.174 293.0);
Tailwind
colors: {
  custom: {
    50: '#8a67bb',
    500: '#522a9d',
    950: '#000000',
  },
}
SCSS
$custom: #522a9d;
$custom-light: #8a67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#522a9d",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 260.87,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40878,
    "c": 0.17389,
    "h": 293
  },
  "luminance": 0.05884
}

Semantic roles & 50–950 ramp

primary
#522A9D
secondary
#9FBE65
accent
#E147AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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