#522C87#522C87

#522C87 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.145 H 298.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#522C87
RGBrgb(82, 44, 135)
HSLhsl(265, 51%, 35%)
HSVhsv(265, 67%, 53%)
CMYKcmyk(39.3%, 67.4%, 0%, 47.1%)
CIE-LABlab(27.69, 37.45, -44.61)
CIE-LCHlch(27.69, 58.25, 310.01°)
OKLaboklab(39.3% 0.0696 -0.1271)
OKLCHoklch(39.3% 0.145 298.7)
XYZxyz(8.7524, 5.3444, 23.4874)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522C87 #61872C
analogous
#2C3387 #522C87 #7F2C87
triadic
#522C87 #87522C #2C8752
tetradic
#522C87 #872C33 #61872C #2C877F
square
#522C87 #872C33 #61872C #2C877F
split-complementary
#522C87 #877F2C #33872C
monochromatic
#1A0E2B #361D59 #522C87 #6E3BB5 #8E62CC

Accessibility & contrast

On white

10.15
#522C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522C87
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522C87#FFFFFF#000000##FFFFFF
##522C871.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#464155
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522c87;
/* rgb */ color: rgb(82, 44, 135);
/* oklch */ color: oklch(39.3% 0.145 298.7);
Tailwind
colors: {
  custom: {
    50: '#8768ab',
    500: '#522c87',
    950: '#000000',
  },
}
SCSS
$custom: #522c87;
$custom-light: #8768ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522c87",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 265.055,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39297,
    "c": 0.14489,
    "h": 298.7
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#522C87
secondary
#8EB25D
accent
#DA4DA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522C87

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

Preview Lab → · Contrast checker → · Palette generator →

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