#522C9A#522C9A

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

Color values

HEX#522C9A
RGBrgb(82, 44, 154)
HSLhsl(261, 56%, 39%)
HSVhsv(261, 71%, 60%)
CMYKcmyk(46.8%, 71.4%, 0%, 39.6%)
CIE-LABlab(29.23, 42.74, -53.83)
CIE-LCHlch(29.23, 68.73, 308.45°)
OKLaboklab(40.88% 0.0666 -0.1542)
OKLCHoklch(40.88% 0.168 293.4)
XYZxyz(10.2115, 5.9280, 31.1718)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C9A #749A2C
analogous
#2C3D9A #522C9A #892C9A
triadic
#522C9A #9A522C #2C9A52
tetradic
#522C9A #9A2C3D #749A2C #2C9A89
square
#522C9A #9A2C3D #749A2C #2C9A89
split-complementary
#522C9A #9A892C #3D9A2C
monochromatic
#1F113B #391E6A #522C9A #6C3CC7 #906CD5

Accessibility & contrast

On white

9.61
#522C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#522C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C9A
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C9A#FFFFFF#000000##FFFFFF
##522C9A1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#3D4860
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522c9a;
/* rgb */ color: rgb(82, 44, 154);
/* oklch */ color: oklch(40.9% 0.168 293.4);
Tailwind
colors: {
  custom: {
    50: '#8968b9',
    500: '#522c9a',
    950: '#000000',
  },
}
SCSS
$custom: #522c9a;
$custom-light: #8968b9;
$custom-dark: #000000;
JSON
{
  "hex": "#522c9a",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 260.727,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40878,
    "c": 0.16795,
    "h": 293.4
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

primary
#522C9A
secondary
#9EBC66
accent
#DF49AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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