#522A88#522A88

#522A88 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.149 H 298.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#522A88
RGBrgb(82, 42, 136)
HSLhsl(266, 53%, 35%)
HSVhsv(266, 69%, 53%)
CMYKcmyk(39.7%, 69.1%, 0%, 46.7%)
CIE-LABlab(27.37, 38.82, -45.76)
CIE-LCHlch(27.37, 60.01, 310.31°)
OKLaboklab(39.09% 0.0718 -0.1304)
OKLCHoklch(39.09% 0.149 298.8)
XYZxyz(8.7505, 5.2272, 23.8357)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A88 #60882A
analogous
#2A3188 #522A88 #812A88
triadic
#522A88 #88522A #2A8852
tetradic
#522A88 #882A31 #60882A #2A8881
square
#522A88 #882A31 #60882A #2A8881
split-complementary
#522A88 #88812A #31882A
monochromatic
#1A0D2A #361C59 #522A88 #6E38B7 #8E5FCE

Accessibility & contrast

On white

10.27
#522A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A88
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A88#FFFFFF#000000##FFFFFF
##522A881.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#454055
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522a88;
/* rgb */ color: rgb(82, 42, 136);
/* oklch */ color: oklch(39.1% 0.149 298.8);
Tailwind
colors: {
  custom: {
    50: '#8766ab',
    500: '#522a88',
    950: '#000000',
  },
}
SCSS
$custom: #522a88;
$custom-light: #8766ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522a88",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 265.532,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39091,
    "c": 0.14888,
    "h": 298.8
  },
  "luminance": 0.05227
}

Semantic roles & 50–950 ramp

primary
#522A88
secondary
#8EB35B
accent
#DC4C9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522A88

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

Preview Lab → · Contrast checker → · Palette generator →

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