#521B86#521B86

#521B86 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.165 H 302.0°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#521B86
RGBrgb(82, 27, 134)
HSLhsl(271, 66%, 32%)
HSVhsv(271, 80%, 53%)
CMYKcmyk(38.8%, 79.9%, 0%, 47.5%)
CIE-LABlab(24.64, 45.54, -48.96)
CIE-LCHlch(24.64, 66.87, 312.93°)
OKLaboklab(37.1% 0.0873 -0.1398)
OKLCHoklch(37.1% 0.165 302)
XYZxyz(8.1736, 4.2989, 22.9488)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521B86 #4F861B
analogous
#1C1B86 #521B86 #861B85
triadic
#521B86 #86521B #1B8652
tetradic
#521B86 #861C1B #4F861B #1B8586
square
#521B86 #861C1B #4F861B #1B8586
split-complementary
#521B86 #85861B #1B861C
monochromatic
#140620 #331153 #521B86 #7125B9 #9042D9

Accessibility & contrast

On white

11.29
#521B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#521B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521B86
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521B86#FFFFFF#000000##FFFFFF
##521B861.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#473750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521b86;
/* rgb */ color: rgb(82, 27, 134);
/* oklch */ color: oklch(37.1% 0.165 302.0);
Tailwind
colors: {
  custom: {
    50: '#885eaa',
    500: '#521b86',
    950: '#000000',
  },
}
SCSS
$custom: #521b86;
$custom-light: #885eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#521b86",
  "rgb": {
    "r": 82,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 270.841,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.371,
    "c": 0.16481,
    "h": 302
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#521B86
secondary
#7DB944
accent
#E93E92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521B86

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

Preview Lab → · Contrast checker → · Palette generator →

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