#522D8A#522D8A

#522D8A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.147 H 297.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#522D8A
RGBrgb(82, 45, 138)
HSLhsl(264, 51%, 36%)
HSVhsv(264, 67%, 54%)
CMYKcmyk(40.6%, 67.4%, 0%, 45.9%)
CIE-LABlab(28.13, 37.72, -45.77)
CIE-LCHlch(28.13, 59.32, 309.49°)
OKLaboklab(39.68% 0.0681 -0.1305)
OKLCHoklch(39.68% 0.147 297.5)
XYZxyz(9.0043, 5.5054, 24.6281)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D8A #658A2D
analogous
#2D368A #522D8A #802D8A
triadic
#522D8A #8A522D #2D8A52
tetradic
#522D8A #8A2D36 #658A2D #2D8A80
square
#522D8A #8A2D36 #658A2D #2D8A80
split-complementary
#522D8A #8A802D #368A2D
monochromatic
#1B0F2E #371E5C #522D8A #6D3CB8 #8E65CD

Accessibility & contrast

On white

9.99
#522D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522D8A
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D8A#FFFFFF#000000##FFFFFF
##522D8A1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#444357
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522d8a;
/* rgb */ color: rgb(82, 45, 138);
/* oklch */ color: oklch(39.7% 0.147 297.5);
Tailwind
colors: {
  custom: {
    50: '#8768ad',
    500: '#522d8a',
    950: '#000000',
  },
}
SCSS
$custom: #522d8a;
$custom-light: #8768ad;
$custom-dark: #000000;
JSON
{
  "hex": "#522d8a",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 263.871,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39683,
    "c": 0.14719,
    "h": 297.5
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#522D8A
secondary
#92B360
accent
#DA4DA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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