#521589#521589

#521589 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.174 H 301.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#521589
RGBrgb(82, 21, 137)
HSLhsl(272, 73%, 31%)
HSVhsv(272, 85%, 54%)
CMYKcmyk(40.1%, 84.7%, 0%, 46.3%)
CIE-LABlab(24.12, 48.57, -51.69)
CIE-LCHlch(24.12, 70.93, 313.22°)
OKLaboklab(36.82% 0.0912 -0.1477)
OKLCHoklch(36.82% 0.174 301.7)
XYZxyz(8.2621, 4.1363, 24.0252)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521589 #4C8915
analogous
#181589 #521589 #891586
triadic
#521589 #895215 #158952
tetradic
#521589 #891815 #4C8915 #158689
square
#521589 #891815 #4C8915 #158689
split-complementary
#521589 #868915 #158918
monochromatic
#12051F #320D54 #521589 #721DBE #9138E0

Accessibility & contrast

On white

11.49
#521589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521589
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521589#FFFFFF#000000##FFFFFF
##5215891.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#463651
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #521589;
/* rgb */ color: rgb(82, 21, 137);
/* oklch */ color: oklch(36.8% 0.174 301.7);
Tailwind
colors: {
  custom: {
    50: '#895cac',
    500: '#521589',
    950: '#000000',
  },
}
SCSS
$custom: #521589;
$custom-light: #895cac;
$custom-dark: #000000;
JSON
{
  "hex": "#521589",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 271.552,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36822,
    "c": 0.17359,
    "h": 301.7
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#521589
secondary
#7ABD3D
accent
#F0388F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #521589

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

Preview Lab → · Contrast checker → · Palette generator →

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