#521B82#521B82

#521B82 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.161 H 303.4°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#521B82
RGBrgb(82, 27, 130)
HSLhsl(272, 66%, 31%)
HSVhsv(272, 79%, 51%)
CMYKcmyk(36.9%, 79.2%, 0%, 49%)
CIE-LABlab(24.29, 44.55, -47.01)
CIE-LCHlch(24.29, 64.77, 313.46°)
OKLaboklab(36.75% 0.0884 -0.1341)
OKLCHoklch(36.75% 0.161 303.4)
XYZxyz(7.8999, 4.1894, 21.5072)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B82 #4B821B
analogous
#1F1B82 #521B82 #821B7E
triadic
#521B82 #82521B #1B8252
tetradic
#521B82 #821F1B #4B821B #1B7E82
square
#521B82 #821F1B #4B821B #1B7E82
split-complementary
#521B82 #7E821B #1B821F
monochromatic
#12061D #32104F #521B82 #7226B5 #9140D7

Accessibility & contrast

On white

11.43
#521B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#521B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B82
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B82#FFFFFF#000000##FFFFFF
##521B821.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#48364E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521b82;
/* rgb */ color: rgb(82, 27, 130);
/* oklch */ color: oklch(36.7% 0.161 303.4);
Tailwind
colors: {
  custom: {
    50: '#885ea7',
    500: '#521b82',
    950: '#000000',
  },
}
SCSS
$custom: #521b82;
$custom-light: #885ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#521b82",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 272.039,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36748,
    "c": 0.16059,
    "h": 303.4
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#521B82
secondary
#79B643
accent
#E93F8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521B82

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

Preview Lab → · Contrast checker → · Palette generator →

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