#521C8D#521C8D

#521C8D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.171 H 299.6°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#521C8D
RGBrgb(82, 28, 141)
HSLhsl(269, 67%, 33%)
HSVhsv(269, 80%, 55%)
CMYKcmyk(41.8%, 80.1%, 0%, 44.7%)
CIE-LABlab(25.40, 46.88, -52.08)
CIE-LCHlch(25.40, 70.07, 312.00°)
OKLaboklab(37.83% 0.0845 -0.1489)
OKLCHoklch(37.83% 0.171 299.6)
XYZxyz(8.7014, 4.5473, 25.6134)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C8D #578D1C
analogous
#1C1E8D #521C8D #8A1C8D
triadic
#521C8D #8D521C #1C8D52
tetradic
#521C8D #8D1C1E #578D1C #1C8D8A
square
#521C8D #8D1C1E #578D1C #1C8D8A
split-complementary
#521C8D #8D8A1C #1E8D1C
monochromatic
#170827 #34125A #521C8D #7026C0 #8E49DB

Accessibility & contrast

On white

11.00
#521C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##521C8D#FFFFFF#000000##FFFFFF
##521C8D1.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)
#003C90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#443B54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #521c8d;
/* rgb */ color: rgb(82, 28, 141);
/* oklch */ color: oklch(37.8% 0.171 299.6);
Tailwind
colors: {
  custom: {
    50: '#895faf',
    500: '#521c8d',
    950: '#000000',
  },
}
SCSS
$custom: #521c8d;
$custom-light: #895faf;
$custom-dark: #000000;
JSON
{
  "hex": "#521c8d",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 268.673,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37829,
    "c": 0.17122,
    "h": 299.6
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#521C8D
secondary
#85BD48
accent
#EA3E98
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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