#522CA1#522CA1

#522CA1 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.176 H 291.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#522CA1
RGBrgb(82, 44, 161)
HSLhsl(259, 57%, 40%)
HSVhsv(259, 73%, 63%)
CMYKcmyk(49.1%, 72.7%, 0%, 36.9%)
CIE-LABlab(29.83, 44.71, -57.11)
CIE-LCHlch(29.83, 72.53, 308.06°)
OKLaboklab(41.49% 0.0652 -0.1638)
OKLCHoklch(41.49% 0.176 291.7)
XYZxyz(10.8116, 6.1680, 34.3322)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CA1 #7BA12C
analogous
#2C41A1 #522CA1 #8C2CA1
triadic
#522CA1 #A1522C #2CA152
tetradic
#522CA1 #A12C41 #7BA12C #2CA18C
square
#522CA1 #A12C41 #7BA12C #2CA18C
split-complementary
#522CA1 #A18C2C #41A12C
monochromatic
#211241 #3A1F71 #522CA1 #6D40CB #9170D8

Accessibility & contrast

On white

9.40
#522CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#522CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CA1
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CA1#FFFFFF#000000##FFFFFF
##522CA11.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#394B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522ca1;
/* rgb */ color: rgb(82, 44, 161);
/* oklch */ color: oklch(41.5% 0.176 291.7);
Tailwind
colors: {
  custom: {
    50: '#8a69be',
    500: '#522ca1',
    950: '#000000',
  },
}
SCSS
$custom: #522ca1;
$custom-light: #8a69be;
$custom-dark: #000000;
JSON
{
  "hex": "#522ca1",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 259.487,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41492,
    "c": 0.17628,
    "h": 291.7
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#522CA1
secondary
#A3BF6A
accent
#E047AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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