#521988#521988

#521988 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.169 H 301.6°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#521988
RGBrgb(82, 25, 136)
HSLhsl(271, 69%, 32%)
HSVhsv(271, 82%, 53%)
CMYKcmyk(39.7%, 81.6%, 0%, 46.7%)
CIE-LABlab(24.53, 46.85, -50.38)
CIE-LCHlch(24.53, 68.80, 312.92°)
OKLaboklab(37.08% 0.0884 -0.1439)
OKLCHoklch(37.08% 0.169 301.6)
XYZxyz(8.2702, 4.2666, 23.6756)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521988 #4F8819
analogous
#1B1988 #521988 #881987
triadic
#521988 #885219 #198852
tetradic
#521988 #881B19 #4F8819 #198788
square
#521988 #881B19 #4F8819 #198788
split-complementary
#521988 #878819 #19881B
monochromatic
#140621 #330F54 #521988 #7123BC #9040DC

Accessibility & contrast

On white

11.33
#521988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#521988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521988
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521988#FFFFFF#000000##FFFFFF
##5219881.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#463751
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521988;
/* rgb */ color: rgb(82, 25, 136);
/* oklch */ color: oklch(37.1% 0.169 301.6);
Tailwind
colors: {
  custom: {
    50: '#885dac',
    500: '#521988',
    950: '#000000',
  },
}
SCSS
$custom: #521988;
$custom-light: #885dac;
$custom-dark: #000000;
JSON
{
  "hex": "#521988",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 270.811,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37084,
    "c": 0.16893,
    "h": 301.6
  },
  "luminance": 0.04267
}

Semantic roles & 50–950 ramp

primary
#521988
secondary
#7DBB41
accent
#EC3C92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521988

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

Preview Lab → · Contrast checker → · Palette generator →

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