#522CA5#522CA5

#522CA5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.181 H 290.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#522CA5
RGBrgb(82, 44, 165)
HSLhsl(259, 58%, 41%)
HSVhsv(259, 73%, 65%)
CMYKcmyk(50.3%, 73.3%, 0%, 35.3%)
CIE-LABlab(30.18, 45.84, -58.95)
CIE-LCHlch(30.18, 74.67, 307.87°)
OKLaboklab(41.85% 0.0643 -0.1692)
OKLCHoklch(41.85% 0.181 290.8)
XYZxyz(11.1700, 6.3114, 36.2197)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CA5 #7FA52C
analogous
#2C42A5 #522CA5 #8E2CA5
triadic
#522CA5 #A5522C #2CA552
tetradic
#522CA5 #A52C42 #7FA52C #2CA58E
square
#522CA5 #A52C42 #7FA52C #2CA58E
split-complementary
#522CA5 #A58E2C #42A52C
monochromatic
#221244 #3A1F75 #522CA5 #6D42CD #9272D9

Accessibility & contrast

On white

9.28
#522CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CA5
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CA5#FFFFFF#000000##FFFFFF
##522CA51.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#364C66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ca5;
/* rgb */ color: rgb(82, 44, 165);
/* oklch */ color: oklch(41.9% 0.181 290.8);
Tailwind
colors: {
  custom: {
    50: '#8b69c1',
    500: '#522ca5',
    950: '#000000',
  },
}
SCSS
$custom: #522ca5;
$custom-light: #8b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#522ca5",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 258.843,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41851,
    "c": 0.181,
    "h": 290.8
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#522CA5
secondary
#A6C16C
accent
#E147B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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