#522D96#522D96

#522D96 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.162 H 294.2°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#522D96
RGBrgb(82, 45, 150)
HSLhsl(261, 54%, 38%)
HSVhsv(261, 70%, 59%)
CMYKcmyk(45.3%, 70%, 0%, 41.2%)
CIE-LABlab(29.09, 41.08, -51.62)
CIE-LCHlch(29.09, 65.97, 308.51°)
OKLaboklab(40.67% 0.0663 -0.1477)
OKLCHoklch(40.67% 0.162 294.2)
XYZxyz(9.9216, 5.8723, 29.4590)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D96 #71962D
analogous
#2D3C96 #522D96 #862D96
triadic
#522D96 #96522D #2D9652
tetradic
#522D96 #962D3C #71962D #2D9686
square
#522D96 #962D3C #71962D #2D9686
split-complementary
#522D96 #96862D #3C962D
monochromatic
#1F1138 #381F67 #522D96 #6C3CC4 #8F6BD3

Accessibility & contrast

On white

9.66
#522D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#522D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522D96
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D96#FFFFFF#000000##FFFFFF
##522D961.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#3F475E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522d96;
/* rgb */ color: rgb(82, 45, 150);
/* oklch */ color: oklch(40.7% 0.162 294.2);
Tailwind
colors: {
  custom: {
    50: '#8969b6',
    500: '#522d96',
    950: '#000000',
  },
}
SCSS
$custom: #522d96;
$custom-light: #8969b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522d96",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 261.143,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40673,
    "c": 0.16189,
    "h": 294.2
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#522D96
secondary
#9CB965
accent
#DD4BAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D96

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

Preview Lab → · Contrast checker → · Palette generator →

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