#522080#522080

#522080 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.153 H 303.4°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#522080
RGBrgb(82, 32, 128)
HSLhsl(271, 60%, 31%)
HSVhsv(271, 75%, 50%)
CMYKcmyk(35.9%, 75%, 0%, 49.8%)
CIE-LABlab(24.91, 41.81, -44.75)
CIE-LCHlch(24.91, 61.24, 313.05°)
OKLaboklab(37.13% 0.084 -0.1274)
OKLCHoklch(37.13% 0.153 303.4)
XYZxyz(7.8916, 4.3854, 20.8486)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522080 #4E8020
analogous
#222080 #522080 #80207E
triadic
#522080 #805220 #208052
tetradic
#522080 #802220 #4E8020 #207E80
square
#522080 #802220 #4E8020 #207E80
split-complementary
#522080 #7E8020 #208022
monochromatic
#13081E #33144F #522080 #712CB1 #9049D1

Accessibility & contrast

On white

11.19
#522080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#522080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522080
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522080#FFFFFF#000000##FFFFFF
##5220801.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#49374E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #522080;
/* rgb */ color: rgb(82, 32, 128);
/* oklch */ color: oklch(37.1% 0.153 303.4);
Tailwind
colors: {
  custom: {
    50: '#8760a6',
    500: '#522080',
    950: '#000000',
  },
}
SCSS
$custom: #522080;
$custom-light: #8760a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522080",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 271.25,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37132,
    "c": 0.15264,
    "h": 303.4
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#522080
secondary
#7CB349
accent
#E34591
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522080

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

Preview Lab → · Contrast checker → · Palette generator →

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