#521987#521987

#521987 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.168 H 301.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#521987
RGBrgb(82, 25, 135)
HSLhsl(271, 69%, 31%)
HSVhsv(271, 81%, 53%)
CMYKcmyk(39.3%, 81.5%, 0%, 47.1%)
CIE-LABlab(24.44, 46.60, -49.90)
CIE-LCHlch(24.44, 68.28, 313.04°)
OKLaboklab(36.99% 0.0887 -0.1425)
OKLCHoklch(36.99% 0.168 301.9)
XYZxyz(8.1994, 4.2383, 23.3031)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521987 #4E8719
analogous
#1B1987 #521987 #871985
triadic
#521987 #875219 #198752
tetradic
#521987 #871B19 #4E8719 #198587
square
#521987 #871B19 #4E8719 #198587
split-complementary
#521987 #858719 #19871B
monochromatic
#130620 #330F53 #521987 #7123BB #903FDB

Accessibility & contrast

On white

11.37
#521987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#521987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521987
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521987#FFFFFF#000000##FFFFFF
##5219871.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#463750
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521987;
/* rgb */ color: rgb(82, 25, 135);
/* oklch */ color: oklch(37.0% 0.168 301.9);
Tailwind
colors: {
  custom: {
    50: '#885dab',
    500: '#521987',
    950: '#000000',
  },
}
SCSS
$custom: #521987;
$custom-light: #885dab;
$custom-dark: #000000;
JSON
{
  "hex": "#521987",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 271.091,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36994,
    "c": 0.16788,
    "h": 301.9
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#521987
secondary
#7CBA41
accent
#EC3C91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521987

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

Preview Lab → · Contrast checker → · Palette generator →

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