#522D80#522D80

#522D80 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.135 H 300.8°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#522D80
RGBrgb(82, 45, 128)
HSLhsl(267, 48%, 34%)
HSVhsv(267, 65%, 50%)
CMYKcmyk(35.9%, 64.8%, 0%, 49.8%)
CIE-LABlab(27.38, 34.97, -40.74)
CIE-LCHlch(27.38, 53.70, 310.64°)
OKLaboklab(38.9% 0.069 -0.1157)
OKLCHoklch(38.9% 0.135 300.8)
XYZxyz(8.3134, 5.2291, 20.9892)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D80 #5B802D
analogous
#2D3280 #522D80 #7C2D80
triadic
#522D80 #80522D #2D8052
tetradic
#522D80 #802D32 #5B802D #2D807C
square
#522D80 #802D32 #5B802D #2D807C
split-complementary
#522D80 #807C2D #32802D
monochromatic
#180D25 #351D53 #522D80 #6F3DAD #8E60C7

Accessibility & contrast

On white

10.26
#522D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D80
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D80#FFFFFF#000000##FFFFFF
##522D801.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#0E407E
Tritanopia (blue-blind)
#483F52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522d80;
/* rgb */ color: rgb(82, 45, 128);
/* oklch */ color: oklch(38.9% 0.135 300.8);
Tailwind
colors: {
  custom: {
    50: '#8668a5',
    500: '#522d80',
    950: '#000000',
  },
}
SCSS
$custom: #522d80;
$custom-light: #8668a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522d80",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 266.747,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38903,
    "c": 0.13473,
    "h": 300.8
  },
  "luminance": 0.05229
}

Semantic roles & 50–950 ramp

primary
#522D80
secondary
#89AE5B
accent
#D8509B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522D80

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

Preview Lab → · Contrast checker → · Palette generator →

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