#521B8A#521B8A

#521B8A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.169 H 300.7°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#521B8A
RGBrgb(82, 27, 138)
HSLhsl(270, 67%, 32%)
HSVhsv(270, 80%, 54%)
CMYKcmyk(40.6%, 80.4%, 0%, 45.9%)
CIE-LABlab(24.99, 46.54, -50.88)
CIE-LCHlch(24.99, 68.96, 312.45°)
OKLaboklab(37.46% 0.0862 -0.1454)
OKLCHoklch(37.46% 0.169 300.7)
XYZxyz(8.4579, 4.4126, 24.4459)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B8A #538A1B
analogous
#1B1B8A #521B8A #8A1B8A
triadic
#521B8A #8A521B #1B8A52
tetradic
#521B8A #8A1B1B #538A1B #1B8A8A
square
#521B8A #8A1B1B #538A1B #1B8A8A
split-complementary
#521B8A #8A8A1B #1B8A1B
monochromatic
#150724 #341157 #521B8A #7025BD #8F45DB

Accessibility & contrast

On white

11.15
#521B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#521B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B8A
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B8A#FFFFFF#000000##FFFFFF
##521B8A1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#453952
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #521b8a;
/* rgb */ color: rgb(82, 27, 138);
/* oklch */ color: oklch(37.5% 0.169 300.7);
Tailwind
colors: {
  custom: {
    50: '#895fad',
    500: '#521b8a',
    950: '#000000',
  },
}
SCSS
$custom: #521b8a;
$custom-light: #895fad;
$custom-dark: #000000;
JSON
{
  "hex": "#521b8a",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 269.73,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37458,
    "c": 0.16904,
    "h": 300.7
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#521B8A
secondary
#81BC45
accent
#EA3E95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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