#521686#521686

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

Color values

HEX#521686
RGBrgb(82, 22, 134)
HSLhsl(272, 72%, 31%)
HSVhsv(272, 84%, 53%)
CMYKcmyk(38.8%, 83.6%, 0%, 47.5%)
CIE-LABlab(23.96, 47.49, -50.06)
CIE-LCHlch(23.96, 69.00, 313.49°)
OKLaboklab(36.63% 0.0914 -0.143)
OKLCHoklch(36.63% 0.17 302.6)
XYZxyz(8.0686, 4.0889, 22.9138)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521686 #4A8616
analogous
#1A1686 #521686 #861682
triadic
#521686 #865216 #168652
tetradic
#521686 #861A16 #4A8616 #168286
square
#521686 #861A16 #4A8616 #168286
split-complementary
#521686 #828616 #16861A
monochromatic
#12051D #320D51 #521686 #721FBB #9138DE

Accessibility & contrast

On white

11.55
#521686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521686
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521686#FFFFFF#000000##FFFFFF
##5216861.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#47354F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #521686;
/* rgb */ color: rgb(82, 22, 134);
/* oklch */ color: oklch(36.6% 0.170 302.6);
Tailwind
colors: {
  custom: {
    50: '#885caa',
    500: '#521686',
    950: '#000000',
  },
}
SCSS
$custom: #521686;
$custom-light: #885caa;
$custom-dark: #000000;
JSON
{
  "hex": "#521686",
  "rgb": {
    "r": 82,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 272.143,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36631,
    "c": 0.16969,
    "h": 302.6
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#521686
secondary
#77BA3E
accent
#EF398D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #521686

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

Preview Lab → · Contrast checker → · Palette generator →

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