#521689#521689

#521689 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.173 H 301.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#521689
RGBrgb(82, 22, 137)
HSLhsl(271, 72%, 31%)
HSVhsv(271, 84%, 54%)
CMYKcmyk(40.1%, 83.9%, 0%, 46.3%)
CIE-LABlab(24.24, 48.22, -51.49)
CIE-LCHlch(24.24, 70.54, 313.12°)
OKLaboklab(36.91% 0.0904 -0.1472)
OKLCHoklch(36.91% 0.173 301.6)
XYZxyz(8.2808, 4.1738, 24.0314)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521689 #4D8916
analogous
#181689 #521689 #891686
triadic
#521689 #895216 #168952
tetradic
#521689 #891816 #4D8916 #168689
square
#521689 #891816 #4D8916 #168689
split-complementary
#521689 #868916 #168918
monochromatic
#130520 #320E54 #521689 #721EBE #903ADF

Accessibility & contrast

On white

11.45
#521689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#521689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521689
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521689#FFFFFF#000000##FFFFFF
##5216891.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#463751
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521689;
/* rgb */ color: rgb(82, 22, 137);
/* oklch */ color: oklch(36.9% 0.173 301.6);
Tailwind
colors: {
  custom: {
    50: '#895cac',
    500: '#521689',
    950: '#000000',
  },
}
SCSS
$custom: #521689;
$custom-light: #895cac;
$custom-dark: #000000;
JSON
{
  "hex": "#521689",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 271.304,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36906,
    "c": 0.17272,
    "h": 301.6
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#521689
secondary
#7BBD3E
accent
#EF3990
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #521689

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

Preview Lab → · Contrast checker → · Palette generator →

#521689 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva