#521984#521984

#521984 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.165 H 302.9°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#521984
RGBrgb(82, 25, 132)
HSLhsl(272, 68%, 31%)
HSVhsv(272, 81%, 52%)
CMYKcmyk(37.9%, 81.1%, 0%, 48.2%)
CIE-LABlab(24.18, 45.86, -48.45)
CIE-LCHlch(24.18, 66.72, 313.43°)
OKLaboklab(36.73% 0.0896 -0.1383)
OKLCHoklch(36.73% 0.165 302.9)
XYZxyz(7.9912, 4.1550, 22.2063)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521984 #4B8419
analogous
#1D1984 #521984 #841980
triadic
#521984 #845219 #198452
tetradic
#521984 #841D19 #4B8419 #198084
square
#521984 #841D19 #4B8419 #198084
split-complementary
#521984 #808419 #19841D
monochromatic
#12061D #320F51 #521984 #7223B7 #913DDA

Accessibility & contrast

On white

11.47
#521984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521984
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521984#FFFFFF#000000##FFFFFF
##5219841.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#48364F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #521984;
/* rgb */ color: rgb(82, 25, 132);
/* oklch */ color: oklch(36.7% 0.165 302.9);
Tailwind
colors: {
  custom: {
    50: '#885da9',
    500: '#521984',
    950: '#000000',
  },
}
SCSS
$custom: #521984;
$custom-light: #885da9;
$custom-dark: #000000;
JSON
{
  "hex": "#521984",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 271.963,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36725,
    "c": 0.16477,
    "h": 302.9
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#521984
secondary
#79B841
accent
#EB3D8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521984

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

Preview Lab → · Contrast checker → · Palette generator →

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