#522D8D#522D8D

#522D8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.151 H 296.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#522D8D
RGBrgb(82, 45, 141)
HSLhsl(263, 52%, 36%)
HSVhsv(263, 68%, 55%)
CMYKcmyk(41.8%, 68.1%, 0%, 44.7%)
CIE-LABlab(28.36, 38.56, -47.25)
CIE-LCHlch(28.36, 60.99, 309.21°)
OKLaboklab(39.93% 0.0677 -0.1349)
OKLCHoklch(39.93% 0.151 296.6)
XYZxyz(9.2245, 5.5935, 25.7878)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D8D #688D2D
analogous
#2D388D #522D8D #822D8D
triadic
#522D8D #8D522D #2D8D52
tetradic
#522D8D #8D2D38 #688D2D #2D8D82
square
#522D8D #8D2D38 #688D2D #2D8D82
split-complementary
#522D8D #8D822D #388D2D
monochromatic
#1C0F30 #371E5F #522D8D #6D3CBB #8E66CE

Accessibility & contrast

On white

9.91
#522D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D8D
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D8D#FFFFFF#000000##FFFFFF
##522D8D1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#434459
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522d8d;
/* rgb */ color: rgb(82, 45, 141);
/* oklch */ color: oklch(39.9% 0.151 296.6);
Tailwind
colors: {
  custom: {
    50: '#8868af',
    500: '#522d8d',
    950: '#000000',
  },
}
SCSS
$custom: #522d8d;
$custom-light: #8868af;
$custom-dark: #000000;
JSON
{
  "hex": "#522d8d",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 263.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39926,
    "c": 0.15089,
    "h": 296.6
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#522D8D
secondary
#95B561
accent
#DB4DA4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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