#522182#522182

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

Color values

HEX#522182
RGBrgb(82, 33, 130)
HSLhsl(270, 60%, 32%)
HSVhsv(270, 75%, 51%)
CMYKcmyk(36.9%, 74.6%, 0%, 49%)
CIE-LABlab(25.24, 41.84, -45.47)
CIE-LCHlch(25.24, 61.79, 312.62°)
OKLaboklab(37.42% 0.0826 -0.1295)
OKLCHoklch(37.42% 0.154 302.5)
XYZxyz(8.0518, 4.4932, 21.5578)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522182 #518221
analogous
#212182 #522182 #822182
triadic
#522182 #825221 #218252
tetradic
#522182 #822121 #518221 #218282
square
#522182 #822121 #518221 #218282
split-complementary
#522182 #828221 #218221
monochromatic
#140820 #331551 #522182 #712DB3 #8F4CD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522182#FFFFFF#000000##FFFFFF
##5221821.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)
#003B85
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#48394F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522182;
/* rgb */ color: rgb(82, 33, 130);
/* oklch */ color: oklch(37.4% 0.154 302.5);
Tailwind
colors: {
  custom: {
    50: '#8761a7',
    500: '#522182',
    950: '#000000',
  },
}
SCSS
$custom: #522182;
$custom-light: #8761a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522182",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 270.309,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37419,
    "c": 0.15363,
    "h": 302.5
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#522182
secondary
#7FB44A
accent
#E34593
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #522182

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

Preview Lab → · Contrast checker → · Palette generator →

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