#522A82#522A82

#522A82 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.142 H 300.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#522A82
RGBrgb(82, 42, 130)
HSLhsl(267, 51%, 34%)
HSVhsv(267, 68%, 51%)
CMYKcmyk(36.9%, 67.7%, 0%, 49%)
CIE-LABlab(26.91, 37.20, -42.76)
CIE-LCHlch(26.91, 56.67, 311.02°)
OKLaboklab(38.61% 0.0725 -0.1216)
OKLCHoklch(38.61% 0.142 300.8)
XYZxyz(8.3359, 5.0614, 21.6525)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A82 #5A822A
analogous
#2A2E82 #522A82 #7E2A82
triadic
#522A82 #82522A #2A8252
tetradic
#522A82 #822A2E #5A822A #2A827E
square
#522A82 #822A2E #5A822A #2A827E
split-complementary
#522A82 #827E2A #2E822A
monochromatic
#180C25 #351B54 #522A82 #6F39B0 #8E5CCA

Accessibility & contrast

On white

10.44
#522A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A82
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A82#FFFFFF#000000##FFFFFF
##522A821.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#483E52
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522a82;
/* rgb */ color: rgb(82, 42, 130);
/* oklch */ color: oklch(38.6% 0.142 300.8);
Tailwind
colors: {
  custom: {
    50: '#8766a7',
    500: '#522a82',
    950: '#000000',
  },
}
SCSS
$custom: #522a82;
$custom-light: #8766a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522a82",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 267.273,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38611,
    "c": 0.1416,
    "h": 300.8
  },
  "luminance": 0.05061
}

Semantic roles & 50–950 ramp

primary
#522A82
secondary
#88B058
accent
#DB4D9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522A82

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

Preview Lab → · Contrast checker → · Palette generator →

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