#522A80#522A80

#522A80 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.139 H 301.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#522A80
RGBrgb(82, 42, 128)
HSLhsl(268, 51%, 33%)
HSVhsv(268, 67%, 50%)
CMYKcmyk(35.9%, 67.2%, 0%, 49.8%)
CIE-LABlab(26.76, 36.66, -41.75)
CIE-LCHlch(26.76, 55.56, 311.29°)
OKLaboklab(38.46% 0.0727 -0.1186)
OKLCHoklch(38.46% 0.139 301.5)
XYZxyz(8.2030, 5.0082, 20.9524)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A80 #58802A
analogous
#2A2D80 #522A80 #7D2A80
triadic
#522A80 #80522A #2A8052
tetradic
#522A80 #802A2D #58802A #2A807D
square
#522A80 #802A2D #58802A #2A807D
split-complementary
#522A80 #807D2A #2D802A
monochromatic
#170C24 #341B52 #522A80 #7039AE #8E5BC9

Accessibility & contrast

On white

10.49
#522A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A80
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A80#FFFFFF#000000##FFFFFF
##522A801.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#063F7E
Tritanopia (blue-blind)
#483D51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522a80;
/* rgb */ color: rgb(82, 42, 128);
/* oklch */ color: oklch(38.5% 0.139 301.5);
Tailwind
colors: {
  custom: {
    50: '#8666a5',
    500: '#522a80',
    950: '#000000',
  },
}
SCSS
$custom: #522a80;
$custom-light: #8666a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522a80",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 267.907,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.13916,
    "h": 301.5
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#522A80
secondary
#86AF57
accent
#DA4E99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522A80

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

Preview Lab → · Contrast checker → · Palette generator →

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