#522D99#522D99

#522D99 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.166 H 293.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#522D99
RGBrgb(82, 45, 153)
HSLhsl(261, 55%, 39%)
HSVhsv(261, 71%, 60%)
CMYKcmyk(46.4%, 70.6%, 0%, 40%)
CIE-LABlab(29.34, 41.93, -53.05)
CIE-LCHlch(29.34, 67.61, 308.32°)
OKLaboklab(40.93% 0.0658 -0.1519)
OKLCHoklch(40.93% 0.166 293.4)
XYZxyz(10.1663, 5.9702, 30.7475)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D99 #74992D
analogous
#2D3E99 #522D99 #882D99
triadic
#522D99 #99522D #2D9952
tetradic
#522D99 #992D3E #74992D #2D9988
square
#522D99 #992D3E #74992D #2D9988
split-complementary
#522D99 #99882D #3E992D
monochromatic
#1F113A #391F6A #522D99 #6C3DC6 #906CD4

Accessibility & contrast

On white

9.57
#522D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#522D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D99
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D99#FFFFFF#000000##FFFFFF
##522D991.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522d99;
/* rgb */ color: rgb(82, 45, 153);
/* oklch */ color: oklch(40.9% 0.166 293.4);
Tailwind
colors: {
  custom: {
    50: '#8969b8',
    500: '#522d99',
    950: '#000000',
  },
}
SCSS
$custom: #522d99;
$custom-light: #8969b8;
$custom-dark: #000000;
JSON
{
  "hex": "#522d99",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 260.556,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40928,
    "c": 0.16552,
    "h": 293.4
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#522D99
secondary
#9EBB67
accent
#DE4AAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D99

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

Preview Lab → · Contrast checker → · Palette generator →

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