#522280#522280

#522280 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.150 H 303.1°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#522280
RGBrgb(82, 34, 128)
HSLhsl(271, 58%, 32%)
HSVhsv(271, 73%, 50%)
CMYKcmyk(35.9%, 73.4%, 0%, 49.8%)
CIE-LABlab(25.25, 40.84, -44.19)
CIE-LCHlch(25.25, 60.17, 312.74°)
OKLaboklab(37.38% 0.0819 -0.1258)
OKLCHoklch(37.38% 0.15 303.1)
XYZxyz(7.9471, 4.4964, 20.8671)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522280 #508022
analogous
#232280 #522280 #80227F
triadic
#522280 #805222 #228052
tetradic
#522280 #802322 #508022 #227F80
square
#522280 #802322 #508022 #227F80
split-complementary
#522280 #7F8022 #228023
monochromatic
#14081F #331550 #522280 #712FB0 #904DD0

Accessibility & contrast

On white

11.06
#522280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#522280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522280
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522280#FFFFFF#000000##FFFFFF
##5222801.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#49384E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522280;
/* rgb */ color: rgb(82, 34, 128);
/* oklch */ color: oklch(37.4% 0.150 303.1);
Tailwind
colors: {
  custom: {
    50: '#8762a6',
    500: '#522280',
    950: '#000000',
  },
}
SCSS
$custom: #522280;
$custom-light: #8762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522280",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 270.638,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37375,
    "c": 0.15012,
    "h": 303.1
  },
  "luminance": 0.04496
}

Semantic roles & 50–950 ramp

primary
#522280
secondary
#7EB24B
accent
#E14792
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522280

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

Preview Lab → · Contrast checker → · Palette generator →

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