#522A95#522A95

#522A95 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.164 H 295.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#522A95
RGBrgb(82, 42, 149)
HSLhsl(262, 56%, 37%)
HSVhsv(262, 72%, 58%)
CMYKcmyk(45%, 71.8%, 0%, 41.6%)
CIE-LABlab(28.43, 42.39, -52.07)
CIE-LCHlch(28.43, 67.15, 309.15°)
OKLaboklab(40.18% 0.0696 -0.149)
OKLCHoklch(40.18% 0.164 295)
XYZxyz(9.7310, 5.6194, 28.9999)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A95 #6D952A
analogous
#2A3795 #522A95 #882A95
triadic
#522A95 #95522A #2A9552
tetradic
#522A95 #952A37 #6D952A #2A9588
square
#522A95 #952A37 #6D952A #2A9588
split-complementary
#522A95 #95882A #37952A
monochromatic
#1D0F36 #381D65 #522A95 #6C37C5 #8F66D4

Accessibility & contrast

On white

9.89
#522A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522A95
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A95#FFFFFF#000000##FFFFFF
##522A951.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#3F455C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522a95;
/* rgb */ color: rgb(82, 42, 149);
/* oklch */ color: oklch(40.2% 0.164 295.0);
Tailwind
colors: {
  custom: {
    50: '#8967b5',
    500: '#522a95',
    950: '#000000',
  },
}
SCSS
$custom: #522a95;
$custom-light: #8967b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522a95",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 262.43,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.16445,
    "h": 295
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#522A95
secondary
#99BA61
accent
#DF48A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522A95

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

Preview Lab → · Contrast checker → · Palette generator →

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