#521B87#521B87

#521B87 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.166 H 301.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#521B87
RGBrgb(82, 27, 135)
HSLhsl(271, 67%, 32%)
HSVhsv(271, 80%, 53%)
CMYKcmyk(39.3%, 80%, 0%, 47.1%)
CIE-LABlab(24.72, 45.79, -49.44)
CIE-LCHlch(24.72, 67.39, 312.80°)
OKLaboklab(37.19% 0.0871 -0.1412)
OKLCHoklch(37.19% 0.166 301.7)
XYZxyz(8.2437, 4.3269, 23.3178)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B87 #50871B
analogous
#1C1B87 #521B87 #871B86
triadic
#521B87 #87521B #1B8752
tetradic
#521B87 #871C1B #50871B #1B8687
square
#521B87 #871C1B #50871B #1B8687
split-complementary
#521B87 #86871B #1B871C
monochromatic
#140721 #331154 #521B87 #7125BA #9043D9

Accessibility & contrast

On white

11.26
#521B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#521B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B87
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B87#FFFFFF#000000##FFFFFF
##521B871.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#463851
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #521b87;
/* rgb */ color: rgb(82, 27, 135);
/* oklch */ color: oklch(37.2% 0.166 301.7);
Tailwind
colors: {
  custom: {
    50: '#885eab',
    500: '#521b87',
    950: '#000000',
  },
}
SCSS
$custom: #521b87;
$custom-light: #885eab;
$custom-dark: #000000;
JSON
{
  "hex": "#521b87",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 270.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37189,
    "c": 0.16587,
    "h": 301.7
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#521B87
secondary
#7EBA44
accent
#EA3E92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521B87

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

Preview Lab → · Contrast checker → · Palette generator →

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