#522E9E#522E9E

#522E9E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.170 H 292.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#522E9E
RGBrgb(82, 46, 158)
HSLhsl(259, 55%, 40%)
HSVhsv(259, 71%, 62%)
CMYKcmyk(48.1%, 70.9%, 0%, 38%)
CIE-LABlab(29.95, 42.81, -55.09)
CIE-LCHlch(29.95, 69.77, 307.85°)
OKLaboklab(41.5% 0.0639 -0.1579)
OKLCHoklch(41.5% 0.17 292)
XYZxyz(10.6265, 6.2161, 32.9810)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E9E #7A9E2E
analogous
#2E429E #522E9E #8A2E9E
triadic
#522E9E #9E522E #2E9E52
tetradic
#522E9E #9E2E42 #7A9E2E #2E9E8A
square
#522E9E #9E2E42 #7A9E2E #2E9E8A
split-complementary
#522E9E #9E8A2E #429E2E
monochromatic
#21123F #39206F #522E9E #6D41C8 #9171D6

Accessibility & contrast

On white

9.36
#522E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522E9E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E9E#FFFFFF#000000##FFFFFF
##522E9E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#3A4A62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522e9e;
/* rgb */ color: rgb(82, 46, 158);
/* oklch */ color: oklch(41.5% 0.170 292.0);
Tailwind
colors: {
  custom: {
    50: '#8a6abc',
    500: '#522e9e',
    950: '#000000',
  },
}
SCSS
$custom: #522e9e;
$custom-light: #8a6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#522e9e",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 259.286,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.41497,
    "c": 0.17032,
    "h": 292
  },
  "luminance": 0.06216
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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