#522D95#522D95

#522D95 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.161 H 294.4°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#522D95
RGBrgb(82, 45, 149)
HSLhsl(261, 54%, 38%)
HSVhsv(261, 70%, 58%)
CMYKcmyk(45%, 69.8%, 0%, 41.6%)
CIE-LABlab(29.01, 40.80, -51.14)
CIE-LCHlch(29.01, 65.42, 308.58°)
OKLaboklab(40.59% 0.0665 -0.1463)
OKLCHoklch(40.59% 0.161 294.4)
XYZxyz(9.8414, 5.8403, 29.0367)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D95 #70952D
analogous
#2D3C95 #522D95 #862D95
triadic
#522D95 #95522D #2D9552
tetradic
#522D95 #952D3C #70952D #2D9586
square
#522D95 #952D3C #70952D #2D9586
split-complementary
#522D95 #95862D #3C952D
monochromatic
#1E1137 #381F66 #522D95 #6C3BC4 #8F6AD2

Accessibility & contrast

On white

9.69
#522D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522D95
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D95#FFFFFF#000000##FFFFFF
##522D951.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#3F475D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522d95;
/* rgb */ color: rgb(82, 45, 149);
/* oklch */ color: oklch(40.6% 0.161 294.4);
Tailwind
colors: {
  custom: {
    50: '#8969b5',
    500: '#522d95',
    950: '#000000',
  },
}
SCSS
$custom: #522d95;
$custom-light: #8969b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522d95",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 261.346,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40588,
    "c": 0.16067,
    "h": 294.4
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#522D95
secondary
#9BB965
accent
#DD4BA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522D95

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

Preview Lab → · Contrast checker → · Palette generator →

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