#521B89#521B89

#521B89 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.168 H 301.0°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#521B89
RGBrgb(82, 27, 137)
HSLhsl(270, 67%, 32%)
HSVhsv(270, 80%, 54%)
CMYKcmyk(40.1%, 80.3%, 0%, 46.3%)
CIE-LABlab(24.90, 46.29, -50.40)
CIE-LCHlch(24.90, 68.44, 312.56°)
OKLaboklab(37.37% 0.0865 -0.144)
OKLCHoklch(37.37% 0.168 301)
XYZxyz(8.3859, 4.3838, 24.0664)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B89 #52891B
analogous
#1B1B89 #521B89 #891B89
triadic
#521B89 #89521B #1B8952
tetradic
#521B89 #891B1B #52891B #1B8989
square
#521B89 #891B1B #52891B #1B8989
split-complementary
#521B89 #89891B #1B891B
monochromatic
#150723 #331156 #521B89 #7125BC #8F44DA

Accessibility & contrast

On white

11.19
#521B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521B89
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B89#FFFFFF#000000##FFFFFF
##521B891.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521b89;
/* rgb */ color: rgb(82, 27, 137);
/* oklch */ color: oklch(37.4% 0.168 301.0);
Tailwind
colors: {
  custom: {
    50: '#885eac',
    500: '#521b89',
    950: '#000000',
  },
}
SCSS
$custom: #521b89;
$custom-light: #885eac;
$custom-dark: #000000;
JSON
{
  "hex": "#521b89",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 270,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37368,
    "c": 0.16798,
    "h": 301
  },
  "luminance": 0.04384
}

Semantic roles & 50–950 ramp

primary
#521B89
secondary
#80BC44
accent
#EA3E94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521B89

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

Preview Lab → · Contrast checker → · Palette generator →

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