#522E81#522E81

#522E81 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.134 H 300.2°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#522E81
RGBrgb(82, 46, 129)
HSLhsl(266, 47%, 34%)
HSVhsv(266, 64%, 51%)
CMYKcmyk(36.4%, 64.3%, 0%, 49.4%)
CIE-LABlab(27.66, 34.68, -40.91)
CIE-LCHlch(27.66, 53.63, 310.28°)
OKLaboklab(39.13% 0.0677 -0.1162)
OKLCHoklch(39.13% 0.134 300.2)
XYZxyz(8.4182, 5.3327, 21.3504)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E81 #5D812E
analogous
#2E3481 #522E81 #7C2E81
triadic
#522E81 #81522E #2E8152
tetradic
#522E81 #812E34 #5D812E #2E817C
square
#522E81 #812E34 #5D812E #2E817C
split-complementary
#522E81 #817C2E #34812E
monochromatic
#190E27 #351E54 #522E81 #6F3EAE #8E62C7

Accessibility & contrast

On white

10.16
#522E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522E81
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E81#FFFFFF#000000##FFFFFF
##522E811.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#0E417F
Tritanopia (blue-blind)
#484053
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522e81;
/* rgb */ color: rgb(82, 46, 129);
/* oklch */ color: oklch(39.1% 0.134 300.2);
Tailwind
colors: {
  custom: {
    50: '#8669a6',
    500: '#522e81',
    950: '#000000',
  },
}
SCSS
$custom: #522e81;
$custom-light: #8669a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522e81",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 266.024,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39133,
    "c": 0.13449,
    "h": 300.2
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#522E81
secondary
#8BAE5D
accent
#D7519D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522E81

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

Preview Lab → · Contrast checker → · Palette generator →

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