#521887#521887

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

Color values

HEX#521887
RGBrgb(82, 24, 135)
HSLhsl(271, 70%, 31%)
HSVhsv(271, 82%, 53%)
CMYKcmyk(39.3%, 82.2%, 0%, 47.1%)
CIE-LABlab(24.31, 46.99, -50.12)
CIE-LCHlch(24.31, 68.70, 313.15°)
OKLaboklab(36.9% 0.0895 -0.1431)
OKLCHoklch(36.9% 0.169 302)
XYZxyz(8.1784, 4.1963, 23.2961)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521887 #4D8718
analogous
#1A1887 #521887 #871884
triadic
#521887 #875218 #188752
tetradic
#521887 #871A18 #4D8718 #188487
square
#521887 #871A18 #4D8718 #188487
split-complementary
#521887 #848718 #18871A
monochromatic
#13061F #320F53 #521887 #7221BB #903DDC

Accessibility & contrast

On white

11.42
#521887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#521887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521887
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521887#FFFFFF#000000##FFFFFF
##5218871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521887;
/* rgb */ color: rgb(82, 24, 135);
/* oklch */ color: oklch(36.9% 0.169 302.0);
Tailwind
colors: {
  custom: {
    50: '#885dab',
    500: '#521887',
    950: '#000000',
  },
}
SCSS
$custom: #521887;
$custom-light: #885dab;
$custom-dark: #000000;
JSON
{
  "hex": "#521887",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 271.351,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.369,
    "c": 0.16885,
    "h": 302
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#521887
secondary
#7BBB40
accent
#ED3B90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521887

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

Preview Lab → · Contrast checker → · Palette generator →

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