#522C86#522C86

#522C86 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.144 H 299.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#522C86
RGBrgb(82, 44, 134)
HSLhsl(265, 51%, 35%)
HSVhsv(265, 67%, 53%)
CMYKcmyk(38.8%, 67.2%, 0%, 47.5%)
CIE-LABlab(27.62, 37.18, -44.11)
CIE-LCHlch(27.62, 57.69, 310.12°)
OKLaboklab(39.22% 0.0697 -0.1256)
OKLCHoklch(39.22% 0.144 299)
XYZxyz(8.6824, 5.3163, 23.1184)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C86 #60862C
analogous
#2C3386 #522C86 #7F2C86
triadic
#522C86 #86522C #2C8652
tetradic
#522C86 #862C33 #60862C #2C867F
square
#522C86 #862C33 #60862C #2C867F
split-complementary
#522C86 #867F2C #33862C
monochromatic
#1A0E2A #361D58 #522C86 #6E3BB4 #8E61CB

Accessibility & contrast

On white

10.18
#522C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C86
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C86#FFFFFF#000000##FFFFFF
##522C861.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#464055
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522c86;
/* rgb */ color: rgb(82, 44, 134);
/* oklch */ color: oklch(39.2% 0.144 299.0);
Tailwind
colors: {
  custom: {
    50: '#8768aa',
    500: '#522c86',
    950: '#000000',
  },
}
SCSS
$custom: #522c86;
$custom-light: #8768aa;
$custom-dark: #000000;
JSON
{
  "hex": "#522c86",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 134
  },
  "hsl": {
    "h": 265.333,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39218,
    "c": 0.14365,
    "h": 299
  },
  "luminance": 0.05316
}

Semantic roles & 50–950 ramp

primary
#522C86
secondary
#8EB15C
accent
#DA4E9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C86

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

Preview Lab → · Contrast checker → · Palette generator →

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