#521E8A#521E8A

#521E8A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.166 H 300.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#521E8A
RGBrgb(82, 30, 138)
HSLhsl(269, 64%, 33%)
HSVhsv(269, 78%, 54%)
CMYKcmyk(40.6%, 78.3%, 0%, 45.9%)
CIE-LABlab(25.43, 45.26, -50.16)
CIE-LCHlch(25.43, 67.56, 312.06°)
OKLaboklab(37.77% 0.0836 -0.1433)
OKLCHoklch(37.77% 0.166 300.3)
XYZxyz(8.5302, 4.5573, 24.4701)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E8A #568A1E
analogous
#1E208A #521E8A #881E8A
triadic
#521E8A #8A521E #1E8A52
tetradic
#521E8A #8A1E20 #568A1E #1E8A88
square
#521E8A #8A1E20 #568A1E #1E8A88
split-complementary
#521E8A #8A881E #208A1E
monochromatic
#160825 #341358 #521E8A #7029BC #8F4BD8

Accessibility & contrast

On white

10.99
#521E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#521E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E8A
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E8A#FFFFFF#000000##FFFFFF
##521E8A1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#453A53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #521e8a;
/* rgb */ color: rgb(82, 30, 138);
/* oklch */ color: oklch(37.8% 0.166 300.3);
Tailwind
colors: {
  custom: {
    50: '#8860ad',
    500: '#521e8a',
    950: '#000000',
  },
}
SCSS
$custom: #521e8a;
$custom-light: #8860ad;
$custom-dark: #000000;
JSON
{
  "hex": "#521e8a",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 268.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37768,
    "c": 0.16591,
    "h": 300.3
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#521E8A
secondary
#84BA4A
accent
#E74197
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521E8A

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

Preview Lab → · Contrast checker → · Palette generator →

#521E8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva