#521E89#521E89

#521E89 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.165 H 300.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#521E89
RGBrgb(82, 30, 137)
HSLhsl(269, 64%, 33%)
HSVhsv(269, 78%, 54%)
CMYKcmyk(40.1%, 78.1%, 0%, 46.3%)
CIE-LABlab(25.35, 45.01, -49.68)
CIE-LCHlch(25.35, 67.03, 312.18°)
OKLaboklab(37.68% 0.0839 -0.1419)
OKLCHoklch(37.68% 0.165 300.6)
XYZxyz(8.4582, 4.5285, 24.0905)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E89 #55891E
analogous
#1E1F89 #521E89 #871E89
triadic
#521E89 #89521E #1E8952
tetradic
#521E89 #891E1F #55891E #1E8987
square
#521E89 #891E1F #55891E #1E8987
split-complementary
#521E89 #89871E #1F891E
monochromatic
#160825 #341357 #521E89 #7029BB #8F4AD7

Accessibility & contrast

On white

11.02
#521E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#521E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E89
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E89#FFFFFF#000000##FFFFFF
##521E891.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#453A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #521e89;
/* rgb */ color: rgb(82, 30, 137);
/* oklch */ color: oklch(37.7% 0.165 300.6);
Tailwind
colors: {
  custom: {
    50: '#8860ac',
    500: '#521e89',
    950: '#000000',
  },
}
SCSS
$custom: #521e89;
$custom-light: #8860ac;
$custom-dark: #000000;
JSON
{
  "hex": "#521e89",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 269.159,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37679,
    "c": 0.16483,
    "h": 300.6
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#521E89
secondary
#83BA49
accent
#E74196
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521E89

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

Preview Lab → · Contrast checker → · Palette generator →

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