#522CA7#522CA7

#522CA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.183 H 290.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#522CA7
RGBrgb(82, 44, 167)
HSLhsl(259, 58%, 41%)
HSVhsv(259, 74%, 65%)
CMYKcmyk(50.9%, 73.7%, 0%, 34.5%)
CIE-LABlab(30.36, 46.40, -59.86)
CIE-LCHlch(30.36, 75.74, 307.78°)
OKLaboklab(42.03% 0.0638 -0.1719)
OKLCHoklch(42.03% 0.183 290.4)
XYZxyz(11.3534, 6.3848, 37.1859)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CA7 #81A72C
analogous
#2C43A7 #522CA7 #902CA7
triadic
#522CA7 #A7522C #2CA752
tetradic
#522CA7 #A72C43 #81A72C #2CA790
square
#522CA7 #A72C43 #81A72C #2CA790
split-complementary
#522CA7 #A7902C #43A72C
monochromatic
#221246 #3A1F77 #522CA7 #6E43CD #9373DA

Accessibility & contrast

On white

9.22
#522CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#522CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CA7
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CA7#FFFFFF#000000##FFFFFF
##522CA71.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#344D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ca7;
/* rgb */ color: rgb(82, 44, 167);
/* oklch */ color: oklch(42.0% 0.183 290.4);
Tailwind
colors: {
  custom: {
    50: '#8b69c2',
    500: '#522ca7',
    950: '#000000',
  },
}
SCSS
$custom: #522ca7;
$custom-light: #8b69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#522ca7",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 258.537,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42032,
    "c": 0.18335,
    "h": 290.4
  },
  "luminance": 0.06385
}

Semantic roles & 50–950 ramp

primary
#522CA7
secondary
#A8C26D
accent
#E246B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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