#521885#521885

#521885 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.167 H 302.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#521885
RGBrgb(82, 24, 133)
HSLhsl(272, 69%, 31%)
HSVhsv(272, 82%, 52%)
CMYKcmyk(38.3%, 82%, 0%, 47.8%)
CIE-LABlab(24.13, 46.50, -49.16)
CIE-LCHlch(24.13, 67.67, 313.41°)
OKLaboklab(36.72% 0.0901 -0.1403)
OKLCHoklch(36.72% 0.167 302.7)
XYZxyz(8.0389, 4.1405, 22.5614)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521885 #4B8518
analogous
#1C1885 #521885 #851881
triadic
#521885 #855218 #188552
tetradic
#521885 #851C18 #4B8518 #188185
square
#521885 #851C18 #4B8518 #188185
split-complementary
#521885 #818518 #18851C
monochromatic
#12051D #320F51 #521885 #7221B9 #913CDC

Accessibility & contrast

On white

11.49
#521885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521885
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521885#FFFFFF#000000##FFFFFF
##5218851.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#47364F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #521885;
/* rgb */ color: rgb(82, 24, 133);
/* oklch */ color: oklch(36.7% 0.167 302.7);
Tailwind
colors: {
  custom: {
    50: '#885da9',
    500: '#521885',
    950: '#000000',
  },
}
SCSS
$custom: #521885;
$custom-light: #885da9;
$custom-dark: #000000;
JSON
{
  "hex": "#521885",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 271.927,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3672,
    "c": 0.16679,
    "h": 302.7
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#521885
secondary
#79B940
accent
#EC3C8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521885

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

Preview Lab → · Contrast checker → · Palette generator →

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