#521785#521785

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

Color values

HEX#521785
RGBrgb(82, 23, 133)
HSLhsl(272, 71%, 31%)
HSVhsv(272, 83%, 52%)
CMYKcmyk(38.3%, 82.7%, 0%, 47.8%)
CIE-LABlab(24.00, 46.88, -49.37)
CIE-LCHlch(24.00, 68.08, 313.52°)
OKLaboklab(36.63% 0.091 -0.1409)
OKLCHoklch(36.63% 0.168 302.8)
XYZxyz(8.0187, 4.1001, 22.5547)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521785 #4A8517
analogous
#1B1785 #521785 #851781
triadic
#521785 #855217 #178552
tetradic
#521785 #851B17 #4A8517 #178185
square
#521785 #851B17 #4A8517 #178185
split-complementary
#521785 #818517 #17851B
monochromatic
#12051D #320E51 #521785 #7220B9 #913ADD

Accessibility & contrast

On white

11.54
#521785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521785
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521785#FFFFFF#000000##FFFFFF
##5217851.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521785;
/* rgb */ color: rgb(82, 23, 133);
/* oklch */ color: oklch(36.6% 0.168 302.8);
Tailwind
colors: {
  custom: {
    50: '#885ca9',
    500: '#521785',
    950: '#000000',
  },
}
SCSS
$custom: #521785;
$custom-light: #885ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#521785",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 272.182,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36629,
    "c": 0.16775,
    "h": 302.8
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#521785
secondary
#77B93F
accent
#ED3B8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #521785

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

Preview Lab → · Contrast checker → · Palette generator →

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