#522CA2#522CA2

#522CA2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.177 H 291.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#522CA2
RGBrgb(82, 44, 162)
HSLhsl(259, 57%, 40%)
HSVhsv(259, 73%, 64%)
CMYKcmyk(49.4%, 72.8%, 0%, 36.5%)
CIE-LABlab(29.92, 44.99, -57.57)
CIE-LCHlch(29.92, 73.06, 308.01°)
OKLaboklab(41.58% 0.0649 -0.1652)
OKLCHoklch(41.58% 0.177 291.5)
XYZxyz(10.9001, 6.2034, 34.7985)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CA2 #7CA22C
analogous
#2C41A2 #522CA2 #8D2CA2
triadic
#522CA2 #A2522C #2CA252
tetradic
#522CA2 #A22C41 #7CA22C #2CA28D
square
#522CA2 #A22C41 #7CA22C #2CA28D
split-complementary
#522CA2 #A28D2C #41A22C
monochromatic
#211242 #3A1F72 #522CA2 #6D40CB #9270D8

Accessibility & contrast

On white

9.37
#522CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#522CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CA2
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CA2#FFFFFF#000000##FFFFFF
##522CA21.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#384B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522ca2;
/* rgb */ color: rgb(82, 44, 162);
/* oklch */ color: oklch(41.6% 0.177 291.5);
Tailwind
colors: {
  custom: {
    50: '#8a69bf',
    500: '#522ca2',
    950: '#000000',
  },
}
SCSS
$custom: #522ca2;
$custom-light: #8a69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#522ca2",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 259.322,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41582,
    "c": 0.17746,
    "h": 291.5
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#522CA2
secondary
#A4BF6A
accent
#E147AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #522CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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