#522C85#522C85

#522C85 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.142 H 299.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#522C85
RGBrgb(82, 44, 133)
HSLhsl(266, 50%, 35%)
HSVhsv(266, 67%, 52%)
CMYKcmyk(38.3%, 66.9%, 0%, 47.8%)
CIE-LABlab(27.54, 36.90, -43.61)
CIE-LCHlch(27.54, 57.13, 310.24°)
OKLaboklab(39.14% 0.0698 -0.1241)
OKLCHoklch(39.14% 0.142 299.3)
XYZxyz(8.6129, 5.2886, 22.7528)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C85 #5F852C
analogous
#2C3385 #522C85 #7F2C85
triadic
#522C85 #85522C #2C8552
tetradic
#522C85 #852C33 #5F852C #2C857F
square
#522C85 #852C33 #5F852C #2C857F
split-complementary
#522C85 #857F2C #33852C
monochromatic
#190E29 #361D57 #522C85 #6E3BB3 #8E61CB

Accessibility & contrast

On white

10.21
#522C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522C85
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C85#FFFFFF#000000##FFFFFF
##522C851.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#464054
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522c85;
/* rgb */ color: rgb(82, 44, 133);
/* oklch */ color: oklch(39.1% 0.142 299.3);
Tailwind
colors: {
  custom: {
    50: '#8768a9',
    500: '#522c85',
    950: '#000000',
  },
}
SCSS
$custom: #522c85;
$custom-light: #8768a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522c85",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 265.618,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39139,
    "c": 0.14242,
    "h": 299.3
  },
  "luminance": 0.05289
}

Semantic roles & 50–950 ramp

primary
#522C85
secondary
#8DB15C
accent
#DA4E9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C85

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

Preview Lab → · Contrast checker → · Palette generator →

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