#522282#522282

#522282 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.152 H 302.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#522282
RGBrgb(82, 34, 130)
HSLhsl(270, 59%, 32%)
HSVhsv(270, 74%, 51%)
CMYKcmyk(36.9%, 73.8%, 0%, 49%)
CIE-LABlab(25.41, 41.35, -45.19)
CIE-LCHlch(25.41, 61.25, 312.46°)
OKLaboklab(37.54% 0.0815 -0.1287)
OKLCHoklch(37.54% 0.152 302.3)
XYZxyz(8.0800, 4.5496, 21.5672)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522282 #528222
analogous
#222282 #522282 #822282
triadic
#522282 #825222 #228252
tetradic
#522282 #822222 #528222 #228282
square
#522282 #822222 #528222 #228282
split-complementary
#522282 #828222 #228222
monochromatic
#150921 #331551 #522282 #712FB3 #8F4ED1

Accessibility & contrast

On white

10.99
#522282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#522282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522282
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522282#FFFFFF#000000##FFFFFF
##5222821.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#483950
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522282;
/* rgb */ color: rgb(82, 34, 130);
/* oklch */ color: oklch(37.5% 0.152 302.3);
Tailwind
colors: {
  custom: {
    50: '#8762a7',
    500: '#522282',
    950: '#000000',
  },
}
SCSS
$custom: #522282;
$custom-light: #8762a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522282",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 270,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37541,
    "c": 0.15238,
    "h": 302.3
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#522282
secondary
#80B44C
accent
#E24694
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522282

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

Preview Lab → · Contrast checker → · Palette generator →

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