#522E87#522E87

#522E87 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.142 H 298.2°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#522E87
RGBrgb(82, 46, 135)
HSLhsl(264, 49%, 35%)
HSVhsv(264, 66%, 53%)
CMYKcmyk(39.3%, 65.9%, 0%, 47.1%)
CIE-LABlab(28.11, 36.33, -43.94)
CIE-LCHlch(28.11, 57.02, 309.58°)
OKLaboklab(39.6% 0.0672 -0.1251)
OKLCHoklch(39.6% 0.142 298.2)
XYZxyz(8.8287, 5.4970, 23.5128)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E87 #63872E
analogous
#2E3687 #522E87 #7E2E87
triadic
#522E87 #87522E #2E8752
tetradic
#522E87 #872E36 #63872E #2E877E
square
#522E87 #872E36 #63872E #2E877E
split-complementary
#522E87 #877E2E #36872E
monochromatic
#1B0F2C #361E59 #522E87 #6E3EB5 #8E65CA

Accessibility & contrast

On white

10.00
#522E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E87
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E87#FFFFFF#000000##FFFFFF
##522E871.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522e87;
/* rgb */ color: rgb(82, 46, 135);
/* oklch */ color: oklch(39.6% 0.142 298.2);
Tailwind
colors: {
  custom: {
    50: '#8769ab',
    500: '#522e87',
    950: '#000000',
  },
}
SCSS
$custom: #522e87;
$custom-light: #8769ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522e87",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 264.27,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39595,
    "c": 0.14203,
    "h": 298.2
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#522E87
secondary
#90B160
accent
#D94FA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522E87

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

Preview Lab → · Contrast checker → · Palette generator →

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