#521989#521989

#521989 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.170 H 301.2°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#521989
RGBrgb(82, 25, 137)
HSLhsl(271, 69%, 32%)
HSVhsv(271, 82%, 54%)
CMYKcmyk(40.1%, 81.8%, 0%, 46.3%)
CIE-LABlab(24.62, 47.09, -50.86)
CIE-LCHlch(24.62, 69.31, 312.80°)
OKLaboklab(37.17% 0.0881 -0.1453)
OKLCHoklch(37.17% 0.17 301.2)
XYZxyz(8.3416, 4.2952, 24.0516)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521989 #508919
analogous
#1A1989 #521989 #891988
triadic
#521989 #895219 #198952
tetradic
#521989 #891A19 #508919 #198889
square
#521989 #891A19 #508919 #198889
split-complementary
#521989 #888919 #19891A
monochromatic
#140621 #331055 #521989 #7122BD #9040DC

Accessibility & contrast

On white

11.30
#521989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#521989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521989
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521989#FFFFFF#000000##FFFFFF
##5219891.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#463851
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521989;
/* rgb */ color: rgb(82, 25, 137);
/* oklch */ color: oklch(37.2% 0.170 301.2);
Tailwind
colors: {
  custom: {
    50: '#895eac',
    500: '#521989',
    950: '#000000',
  },
}
SCSS
$custom: #521989;
$custom-light: #895eac;
$custom-dark: #000000;
JSON
{
  "hex": "#521989",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 270.536,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37174,
    "c": 0.16996,
    "h": 301.2
  },
  "luminance": 0.04295
}

Semantic roles & 50–950 ramp

primary
#521989
secondary
#7EBC41
accent
#EC3C92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521989

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

Preview Lab → · Contrast checker → · Palette generator →

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