#521C8E#521C8E

#521C8E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.172 H 299.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#521C8E
RGBrgb(82, 28, 142)
HSLhsl(268, 67%, 33%)
HSVhsv(268, 80%, 56%)
CMYKcmyk(42.3%, 80.3%, 0%, 44.3%)
CIE-LABlab(25.49, 47.14, -52.55)
CIE-LCHlch(25.49, 70.59, 311.89°)
OKLaboklab(37.92% 0.0842 -0.1503)
OKLCHoklch(37.92% 0.172 299.2)
XYZxyz(8.7762, 4.5772, 26.0071)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C8E #588E1C
analogous
#1C1F8E #521C8E #8B1C8E
triadic
#521C8E #8E521C #1C8E52
tetradic
#521C8E #8E1C1F #588E1C #1C8E8B
square
#521C8E #8E1C1F #588E1C #1C8E8B
split-complementary
#521C8E #8E8B1C #1F8E1C
monochromatic
#170828 #34125B #521C8E #7026C1 #8E49DB

Accessibility & contrast

On white

10.96
#521C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#521C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521C8E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521C8E#FFFFFF#000000##FFFFFF
##521C8E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#433B55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #521c8e;
/* rgb */ color: rgb(82, 28, 142);
/* oklch */ color: oklch(37.9% 0.172 299.2);
Tailwind
colors: {
  custom: {
    50: '#895fb0',
    500: '#521c8e',
    950: '#000000',
  },
}
SCSS
$custom: #521c8e;
$custom-light: #895fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#521c8e",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 268.421,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3792,
    "c": 0.17228,
    "h": 299.2
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#521C8E
secondary
#86BD49
accent
#EA3E98
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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