#522D87#522D87

#522D87 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.143 H 298.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#522D87
RGBrgb(82, 45, 135)
HSLhsl(265, 50%, 35%)
HSVhsv(265, 67%, 53%)
CMYKcmyk(39.3%, 66.7%, 0%, 47.1%)
CIE-LABlab(27.90, 36.89, -44.28)
CIE-LCHlch(27.90, 57.64, 309.80°)
OKLaboklab(39.45% 0.0684 -0.1261)
OKLCHoklch(39.45% 0.143 298.5)
XYZxyz(8.7901, 5.4198, 23.5000)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D87 #62872D
analogous
#2D3587 #522D87 #7F2D87
triadic
#522D87 #87522D #2D8752
tetradic
#522D87 #872D35 #62872D #2D877F
square
#522D87 #872D35 #62872D #2D877F
split-complementary
#522D87 #877F2D #35872D
monochromatic
#1A0E2B #361E59 #522D87 #6E3CB5 #8E63CB

Accessibility & contrast

On white

10.08
#522D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D87
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D87#FFFFFF#000000##FFFFFF
##522D871.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#464156
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522d87;
/* rgb */ color: rgb(82, 45, 135);
/* oklch */ color: oklch(39.4% 0.143 298.5);
Tailwind
colors: {
  custom: {
    50: '#8768ab',
    500: '#522d87',
    950: '#000000',
  },
}
SCSS
$custom: #522d87;
$custom-light: #8768ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522d87",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 264.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39445,
    "c": 0.14347,
    "h": 298.5
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#522D87
secondary
#8FB25E
accent
#DA4EA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D87

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

Preview Lab → · Contrast checker → · Palette generator →

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