#522184#522184

#522184 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.156 H 301.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#522184
RGBrgb(82, 33, 132)
HSLhsl(270, 60%, 32%)
HSVhsv(270, 75%, 52%)
CMYKcmyk(37.9%, 75%, 0%, 48.2%)
CIE-LABlab(25.40, 42.35, -46.45)
CIE-LCHlch(25.40, 62.86, 312.36°)
OKLaboklab(37.59% 0.0822 -0.1325)
OKLCHoklch(37.59% 0.156 301.8)
XYZxyz(8.1874, 4.5475, 22.2717)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522184 #538421
analogous
#212284 #522184 #842184
triadic
#522184 #845221 #218452
tetradic
#522184 #842122 #538421 #218484
square
#522184 #842122 #538421 #218484
split-complementary
#522184 #848421 #228421
monochromatic
#150922 #341553 #522184 #702DB5 #8F4DD2

Accessibility & contrast

On white

11.00
#522184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522184
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522184#FFFFFF#000000##FFFFFF
##5221841.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#473950
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522184;
/* rgb */ color: rgb(82, 33, 132);
/* oklch */ color: oklch(37.6% 0.156 301.8);
Tailwind
colors: {
  custom: {
    50: '#8861a9',
    500: '#522184',
    950: '#000000',
  },
}
SCSS
$custom: #522184;
$custom-light: #8861a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522184",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 269.697,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37587,
    "c": 0.15586,
    "h": 301.8
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#522184
secondary
#81B64B
accent
#E34595
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522184

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

Preview Lab → · Contrast checker → · Palette generator →

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