#522784#522784

#522784 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.148 H 300.7°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#522784
RGBrgb(82, 39, 132)
HSLhsl(268, 54%, 34%)
HSVhsv(268, 70%, 52%)
CMYKcmyk(37.9%, 70.5%, 0%, 48.2%)
CIE-LABlab(26.48, 39.34, -44.71)
CIE-LCHlch(26.48, 59.55, 311.35°)
OKLaboklab(38.35% 0.0757 -0.1273)
OKLCHoklch(38.35% 0.148 300.7)
XYZxyz(8.3690, 4.9108, 22.3323)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522784 #598427
analogous
#272A84 #522784 #802784
triadic
#522784 #845227 #278452
tetradic
#522784 #84272A #598427 #278480
square
#522784 #84272A #598427 #278480
split-complementary
#522784 #848027 #2A8427
monochromatic
#170B26 #351955 #522784 #6F35B3 #8E58CE

Accessibility & contrast

On white

10.59
#522784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522784
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522784#FFFFFF#000000##FFFFFF
##5227841.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#473D52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522784;
/* rgb */ color: rgb(82, 39, 132);
/* oklch */ color: oklch(38.4% 0.148 300.7);
Tailwind
colors: {
  custom: {
    50: '#8765a8',
    500: '#522784',
    950: '#000000',
  },
}
SCSS
$custom: #522784;
$custom-light: #8765a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522784",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 132
  },
  "hsl": {
    "h": 267.742,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38352,
    "c": 0.14817,
    "h": 300.7
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#522784
secondary
#87B254
accent
#DE4A99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522784

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

Preview Lab → · Contrast checker → · Palette generator →

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