#522684#522684

#522684 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.149 H 300.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#522684
RGBrgb(82, 38, 132)
HSLhsl(268, 55%, 33%)
HSVhsv(268, 71%, 52%)
CMYKcmyk(37.9%, 71.2%, 0%, 48.2%)
CIE-LABlab(26.29, 39.86, -45.01)
CIE-LCHlch(26.29, 60.13, 311.53°)
OKLaboklab(38.22% 0.0768 -0.1282)
OKLCHoklch(38.22% 0.15 300.9)
XYZxyz(8.3366, 4.8460, 22.3215)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522684 #588426
analogous
#262984 #522684 #812684
triadic
#522684 #845226 #268452
tetradic
#522684 #842629 #588426 #268481
square
#522684 #842629 #588426 #268481
split-complementary
#522684 #848126 #298426
monochromatic
#170B25 #341854 #522684 #7034B4 #8E56CE

Accessibility & contrast

On white

10.66
#522684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522684
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522684#FFFFFF#000000##FFFFFF
##5226841.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522684;
/* rgb */ color: rgb(82, 38, 132);
/* oklch */ color: oklch(38.2% 0.149 300.9);
Tailwind
colors: {
  custom: {
    50: '#8764a8',
    500: '#522684',
    950: '#000000',
  },
}
SCSS
$custom: #522684;
$custom-light: #8764a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522684",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 132
  },
  "hsl": {
    "h": 268.085,
    "s": 55.294,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.1495,
    "h": 300.9
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#522684
secondary
#86B353
accent
#DF4999
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522684

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

Preview Lab → · Contrast checker → · Palette generator →

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