#521786#521786

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

Color values

HEX#521786
RGBrgb(82, 23, 134)
HSLhsl(272, 71%, 31%)
HSVhsv(272, 83%, 53%)
CMYKcmyk(38.8%, 82.8%, 0%, 47.5%)
CIE-LABlab(24.09, 47.12, -49.85)
CIE-LCHlch(24.09, 68.60, 313.39°)
OKLaboklab(36.72% 0.0906 -0.1424)
OKLCHoklch(36.72% 0.169 302.5)
XYZxyz(8.0881, 4.1278, 22.9203)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521786 #4B8617
analogous
#1A1786 #521786 #861782
triadic
#521786 #865217 #178652
tetradic
#521786 #861A17 #4B8617 #178286
square
#521786 #861A17 #4B8617 #178286
split-complementary
#521786 #828617 #17861A
monochromatic
#12051E #320E52 #521786 #7220BA #913ADD

Accessibility & contrast

On white

11.50
#521786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521786
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521786#FFFFFF#000000##FFFFFF
##5217861.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521786;
/* rgb */ color: rgb(82, 23, 134);
/* oklch */ color: oklch(36.7% 0.169 302.5);
Tailwind
colors: {
  custom: {
    50: '#885daa',
    500: '#521786',
    950: '#000000',
  },
}
SCSS
$custom: #521786;
$custom-light: #885daa;
$custom-dark: #000000;
JSON
{
  "hex": "#521786",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 271.892,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36719,
    "c": 0.16877,
    "h": 302.5
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#521786
secondary
#79BA3F
accent
#ED3A8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #521786

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

Preview Lab → · Contrast checker → · Palette generator →

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