#521C8B#521C8B

#521C8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.169 H 300.2°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#521C8B
RGBrgb(82, 28, 139)
HSLhsl(269, 66%, 33%)
HSVhsv(269, 80%, 55%)
CMYKcmyk(41%, 79.9%, 0%, 45.5%)
CIE-LABlab(25.22, 46.38, -51.13)
CIE-LCHlch(25.22, 69.03, 312.21°)
OKLaboklab(37.65% 0.0851 -0.1461)
OKLCHoklch(37.65% 0.169 300.2)
XYZxyz(8.5540, 4.4883, 24.8368)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521C8B #558B1C
analogous
#1C1E8B #521C8B #891C8B
triadic
#521C8B #8B521C #1C8B52
tetradic
#521C8B #8B1C1E #558B1C #1C8B89
square
#521C8B #8B1C1E #558B1C #1C8B89
split-complementary
#521C8B #8B891C #1E8B1C
monochromatic
#160725 #341258 #521C8B #7026BE #8F47DA

Accessibility & contrast

On white

11.07
#521C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#521C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521C8B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521C8B#FFFFFF#000000##FFFFFF
##521C8B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521c8b;
/* rgb */ color: rgb(82, 28, 139);
/* oklch */ color: oklch(37.6% 0.169 300.2);
Tailwind
colors: {
  custom: {
    50: '#895fae',
    500: '#521c8b',
    950: '#000000',
  },
}
SCSS
$custom: #521c8b;
$custom-light: #895fae;
$custom-dark: #000000;
JSON
{
  "hex": "#521c8b",
  "rgb": {
    "r": 82,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 269.189,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37648,
    "c": 0.16909,
    "h": 300.2
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#521C8B
secondary
#83BC47
accent
#E93E96
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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