#522082#522082

#522082 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.155 H 302.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#522082
RGBrgb(82, 32, 130)
HSLhsl(271, 60%, 32%)
HSVhsv(271, 75%, 51%)
CMYKcmyk(36.9%, 75.4%, 0%, 49%)
CIE-LABlab(25.07, 42.31, -45.74)
CIE-LCHlch(25.07, 62.31, 312.77°)
OKLaboklab(37.3% 0.0836 -0.1303)
OKLCHoklch(37.3% 0.155 302.7)
XYZxyz(8.0245, 4.4386, 21.5487)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522082 #508220
analogous
#212082 #522082 #822081
triadic
#522082 #825220 #208252
tetradic
#522082 #822120 #508220 #208182
square
#522082 #822120 #508220 #208182
split-complementary
#522082 #818220 #208221
monochromatic
#140820 #331451 #522082 #712CB3 #904AD2

Accessibility & contrast

On white

11.12
#522082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#522082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522082
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522082#FFFFFF#000000##FFFFFF
##5220821.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#48384F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #522082;
/* rgb */ color: rgb(82, 32, 130);
/* oklch */ color: oklch(37.3% 0.155 302.7);
Tailwind
colors: {
  custom: {
    50: '#8761a7',
    500: '#522082',
    950: '#000000',
  },
}
SCSS
$custom: #522082;
$custom-light: #8761a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522082",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 270.612,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.373,
    "c": 0.15485,
    "h": 302.7
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#522082
secondary
#7EB549
accent
#E44492
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522082

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

Preview Lab → · Contrast checker → · Palette generator →

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