#522096#522096

#522096 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.177 H 296.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#522096
RGBrgb(82, 32, 150)
HSLhsl(265, 65%, 36%)
HSVhsv(265, 79%, 59%)
CMYKcmyk(45.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(26.82, 47.49, -55.33)
CIE-LCHlch(26.82, 72.91, 310.64°)
OKLaboklab(39.07% 0.0785 -0.1585)
OKLCHoklch(39.07% 0.177 296.4)
XYZxyz(9.4997, 5.0287, 29.3184)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522096 #649620
analogous
#202996 #522096 #8D2096
triadic
#522096 #965220 #209652
tetradic
#522096 #962029 #649620 #20968D
square
#522096 #962029 #649620 #20968D
split-complementary
#522096 #968D20 #299620
monochromatic
#1B0A31 #361564 #522096 #6E2BC8 #8E56DB

Accessibility & contrast

On white

10.47
#522096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522096
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522096#FFFFFF#000000##FFFFFF
##5220961.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#3F405A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522096;
/* rgb */ color: rgb(82, 32, 150);
/* oklch */ color: oklch(39.1% 0.177 296.4);
Tailwind
colors: {
  custom: {
    50: '#8a62b6',
    500: '#522096',
    950: '#000000',
  },
}
SCSS
$custom: #522096;
$custom-light: #8a62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522096",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 265.424,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39066,
    "c": 0.17688,
    "h": 296.4
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#522096
secondary
#91BE53
accent
#E840A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #522096

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

Preview Lab → · Contrast checker → · Palette generator →

#522096 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva