#521884#521884

#521884 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.166 H 303.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#521884
RGBrgb(82, 24, 132)
HSLhsl(272, 69%, 31%)
HSVhsv(272, 82%, 52%)
CMYKcmyk(37.9%, 81.8%, 0%, 48.2%)
CIE-LABlab(24.04, 46.26, -48.68)
CIE-LCHlch(24.04, 67.15, 313.54°)
OKLaboklab(36.63% 0.0905 -0.1389)
OKLCHoklch(36.63% 0.166 303.1)
XYZxyz(7.9702, 4.1130, 22.1993)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521884 #4A8418
analogous
#1C1884 #521884 #841880
triadic
#521884 #845218 #188452
tetradic
#521884 #841C18 #4A8418 #188084
square
#521884 #841C18 #4A8418 #188084
split-complementary
#521884 #808418 #18841C
monochromatic
#12051C #320F50 #521884 #7221B8 #913BDB

Accessibility & contrast

On white

11.52
#521884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#521884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521884
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521884#FFFFFF#000000##FFFFFF
##5218841.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521884;
/* rgb */ color: rgb(82, 24, 132);
/* oklch */ color: oklch(36.6% 0.166 303.1);
Tailwind
colors: {
  custom: {
    50: '#885da9',
    500: '#521884',
    950: '#000000',
  },
}
SCSS
$custom: #521884;
$custom-light: #885da9;
$custom-dark: #000000;
JSON
{
  "hex": "#521884",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 272.222,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3663,
    "c": 0.16576,
    "h": 303.1
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#521884
secondary
#77B840
accent
#EC3C8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521884

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

Preview Lab → · Contrast checker → · Palette generator →

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