#522CA6#522CA6

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

Color values

HEX#522CA6
RGBrgb(82, 44, 166)
HSLhsl(259, 58%, 41%)
HSVhsv(259, 73%, 65%)
CMYKcmyk(50.6%, 73.5%, 0%, 34.9%)
CIE-LABlab(30.27, 46.12, -59.41)
CIE-LCHlch(30.27, 75.21, 307.82°)
OKLaboklab(41.94% 0.064 -0.1705)
OKLCHoklch(41.94% 0.182 290.6)
XYZxyz(11.2613, 6.3479, 36.7009)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CA6 #80A62C
analogous
#2C43A6 #522CA6 #8F2CA6
triadic
#522CA6 #A6522C #2CA652
tetradic
#522CA6 #A62C43 #80A62C #2CA68F
square
#522CA6 #A62C43 #80A62C #2CA68F
split-complementary
#522CA6 #A68F2C #43A62C
monochromatic
#221245 #3A1F76 #522CA6 #6D42CD #9373DA

Accessibility & contrast

On white

9.25
#522CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#522CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CA6
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CA6#FFFFFF#000000##FFFFFF
##522CA61.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#354C66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ca6;
/* rgb */ color: rgb(82, 44, 166);
/* oklch */ color: oklch(41.9% 0.182 290.6);
Tailwind
colors: {
  custom: {
    50: '#8b69c1',
    500: '#522ca6',
    950: '#000000',
  },
}
SCSS
$custom: #522ca6;
$custom-light: #8b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#522ca6",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 258.689,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41941,
    "c": 0.18217,
    "h": 290.6
  },
  "luminance": 0.06348
}

Semantic roles & 50–950 ramp

primary
#522CA6
secondary
#A7C16D
accent
#E146B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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