#522C99#522C99

#522C99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.167 H 293.6°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#522C99
RGBrgb(82, 44, 153)
HSLhsl(261, 55%, 39%)
HSVhsv(261, 71%, 60%)
CMYKcmyk(46.4%, 71.2%, 0%, 40%)
CIE-LABlab(29.15, 42.46, -53.36)
CIE-LCHlch(29.15, 68.19, 308.51°)
OKLaboklab(40.79% 0.0668 -0.1528)
OKLCHoklch(40.79% 0.167 293.6)
XYZxyz(10.1286, 5.8948, 30.7350)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C99 #73992C
analogous
#2C3D99 #522C99 #882C99
triadic
#522C99 #99522C #2C9952
tetradic
#522C99 #992C3D #73992C #2C9988
square
#522C99 #992C3D #73992C #2C9988
split-complementary
#522C99 #99882C #3D992C
monochromatic
#1F113A #391E69 #522C99 #6C3BC7 #906BD4

Accessibility & contrast

On white

9.64
#522C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#522C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C99
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C99#FFFFFF#000000##FFFFFF
##522C991.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#3D475F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522c99;
/* rgb */ color: rgb(82, 44, 153);
/* oklch */ color: oklch(40.8% 0.167 293.6);
Tailwind
colors: {
  custom: {
    50: '#8968b8',
    500: '#522c99',
    950: '#000000',
  },
}
SCSS
$custom: #522c99;
$custom-light: #8968b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522c99",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 260.917,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40791,
    "c": 0.16676,
    "h": 293.6
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#522C99
secondary
#9DBB66
accent
#DF49AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522C99

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

Preview Lab → · Contrast checker → · Palette generator →

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