#522E9D#522E9D

#522E9D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.169 H 292.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#522E9D
RGBrgb(82, 46, 157)
HSLhsl(259, 55%, 40%)
HSVhsv(259, 71%, 62%)
CMYKcmyk(47.8%, 70.7%, 0%, 38.4%)
CIE-LABlab(29.87, 42.52, -54.62)
CIE-LCHlch(29.87, 69.22, 307.90°)
OKLaboklab(41.41% 0.0641 -0.1565)
OKLCHoklch(41.41% 0.169 292.3)
XYZxyz(10.5408, 6.1818, 32.5296)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E9D #799D2E
analogous
#2E429D #522E9D #892E9D
triadic
#522E9D #9D522E #2E9D52
tetradic
#522E9D #9D2E42 #799D2E #2E9D89
square
#522E9D #9D2E42 #799D2E #2E9D89
split-complementary
#522E9D #9D892E #429D2E
monochromatic
#21123E #39206E #522E9D #6C41C7 #9170D5

Accessibility & contrast

On white

9.39
#522E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#522E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E9D
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E9D#FFFFFF#000000##FFFFFF
##522E9D1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#3B4A62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522e9d;
/* rgb */ color: rgb(82, 46, 157);
/* oklch */ color: oklch(41.4% 0.169 292.3);
Tailwind
colors: {
  custom: {
    50: '#8a6abb',
    500: '#522e9d',
    950: '#000000',
  },
}
SCSS
$custom: #522e9d;
$custom-light: #8a6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#522e9d",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 259.459,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4141,
    "c": 0.16912,
    "h": 292.3
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#522E9D
secondary
#A2BD6A
accent
#DE4AAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #522E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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