#521886#521886

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

Color values

HEX#521886
RGBrgb(82, 24, 134)
HSLhsl(272, 70%, 31%)
HSVhsv(272, 82%, 53%)
CMYKcmyk(38.8%, 82.1%, 0%, 47.5%)
CIE-LABlab(24.22, 46.74, -49.64)
CIE-LCHlch(24.22, 68.18, 313.28°)
OKLaboklab(36.81% 0.0899 -0.1417)
OKLCHoklch(36.81% 0.168 302.4)
XYZxyz(8.1083, 4.1683, 22.9270)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521886 #4C8618
analogous
#1B1886 #521886 #861883
triadic
#521886 #865218 #188652
tetradic
#521886 #861B18 #4C8618 #188386
square
#521886 #861B18 #4C8618 #188386
split-complementary
#521886 #838618 #18861B
monochromatic
#12051E #320F52 #521886 #7221BA #913CDC

Accessibility & contrast

On white

11.45
#521886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521886
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521886#FFFFFF#000000##FFFFFF
##5218861.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#47364F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #521886;
/* rgb */ color: rgb(82, 24, 134);
/* oklch */ color: oklch(36.8% 0.168 302.4);
Tailwind
colors: {
  custom: {
    50: '#885daa',
    500: '#521886',
    950: '#000000',
  },
}
SCSS
$custom: #521886;
$custom-light: #885daa;
$custom-dark: #000000;
JSON
{
  "hex": "#521886",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 271.636,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3681,
    "c": 0.16782,
    "h": 302.4
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#521886
secondary
#7ABA40
accent
#EC3B8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521886

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

Preview Lab → · Contrast checker → · Palette generator →

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