#522A81#522A81

#522A81 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.140 H 301.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#522A81
RGBrgb(82, 42, 129)
HSLhsl(268, 51%, 34%)
HSVhsv(268, 67%, 51%)
CMYKcmyk(36.4%, 67.4%, 0%, 49.4%)
CIE-LABlab(26.83, 36.93, -42.25)
CIE-LCHlch(26.83, 56.11, 311.15°)
OKLaboklab(38.53% 0.0726 -0.1201)
OKLCHoklch(38.53% 0.14 301.1)
XYZxyz(8.2691, 5.0347, 21.3008)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A81 #59812A
analogous
#2A2D81 #522A81 #7D2A81
triadic
#522A81 #81522A #2A8152
tetradic
#522A81 #812A2D #59812A #2A817D
square
#522A81 #812A2D #59812A #2A817D
split-complementary
#522A81 #817D2A #2D812A
monochromatic
#170C25 #351B53 #522A81 #6F39AF #8E5CCA

Accessibility & contrast

On white

10.46
#522A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A81
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A81#FFFFFF#000000##FFFFFF
##522A811.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#033F7F
Tritanopia (blue-blind)
#483D51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522a81;
/* rgb */ color: rgb(82, 42, 129);
/* oklch */ color: oklch(38.5% 0.140 301.1);
Tailwind
colors: {
  custom: {
    50: '#8766a6',
    500: '#522a81',
    950: '#000000',
  },
}
SCSS
$custom: #522a81;
$custom-light: #8766a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522a81",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 129
  },
  "hsl": {
    "h": 267.586,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38533,
    "c": 0.14038,
    "h": 301.1
  },
  "luminance": 0.05035
}

Semantic roles & 50–950 ramp

primary
#522A81
secondary
#87AF57
accent
#DA4D9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522A81

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

Preview Lab → · Contrast checker → · Palette generator →

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