#521F89#521F89

#521F89 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.164 H 300.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#521F89
RGBrgb(82, 31, 137)
HSLhsl(269, 63%, 33%)
HSVhsv(269, 77%, 54%)
CMYKcmyk(40.1%, 77.4%, 0%, 46.3%)
CIE-LABlab(25.50, 44.56, -49.42)
CIE-LCHlch(25.50, 66.55, 312.04°)
OKLaboklab(37.79% 0.0829 -0.1412)
OKLCHoklch(37.79% 0.164 300.4)
XYZxyz(8.4839, 4.5799, 24.0991)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F89 #56891F
analogous
#1F2189 #521F89 #871F89
triadic
#521F89 #89521F #1F8952
tetradic
#521F89 #891F21 #56891F #1F8987
square
#521F89 #891F21 #56891F #1F8987
split-complementary
#521F89 #89871F #21891F
monochromatic
#160825 #341457 #521F89 #702ABB #8F4CD6

Accessibility & contrast

On white

10.96
#521F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#521F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F89
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F89#FFFFFF#000000##FFFFFF
##521F891.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521f89;
/* rgb */ color: rgb(82, 31, 137);
/* oklch */ color: oklch(37.8% 0.164 300.4);
Tailwind
colors: {
  custom: {
    50: '#8860ac',
    500: '#521f89',
    950: '#000000',
  },
}
SCSS
$custom: #521f89;
$custom-light: #8860ac;
$custom-dark: #000000;
JSON
{
  "hex": "#521f89",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 268.868,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.16372,
    "h": 300.4
  },
  "luminance": 0.0458
}

Semantic roles & 50–950 ramp

primary
#521F89
secondary
#84B94B
accent
#E64297
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521F89

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

Preview Lab → · Contrast checker → · Palette generator →

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