#521E83#521E83

#521E83 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.158 H 302.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#521E83
RGBrgb(82, 30, 131)
HSLhsl(271, 63%, 32%)
HSVhsv(271, 77%, 51%)
CMYKcmyk(37.4%, 77.1%, 0%, 48.6%)
CIE-LABlab(24.83, 43.49, -46.76)
CIE-LCHlch(24.83, 63.86, 312.92°)
OKLaboklab(37.16% 0.0854 -0.1333)
OKLCHoklch(37.16% 0.158 302.6)
XYZxyz(8.0397, 4.3611, 21.8865)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521E83 #4F831E
analogous
#201E83 #521E83 #831E82
triadic
#521E83 #83521E #1E8352
tetradic
#521E83 #83201E #4F831E #1E8283
square
#521E83 #83201E #4F831E #1E8283
split-complementary
#521E83 #82831E #1E8320
monochromatic
#14071F #331351 #521E83 #7129B5 #9047D5

Accessibility & contrast

On white

11.22
#521E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#521E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521E83
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521E83#FFFFFF#000000##FFFFFF
##521E831.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#48384F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #521e83;
/* rgb */ color: rgb(82, 30, 131);
/* oklch */ color: oklch(37.2% 0.158 302.6);
Tailwind
colors: {
  custom: {
    50: '#8860a8',
    500: '#521e83',
    950: '#000000',
  },
}
SCSS
$custom: #521e83;
$custom-light: #8860a8;
$custom-dark: #000000;
JSON
{
  "hex": "#521e83",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 270.891,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37156,
    "c": 0.15831,
    "h": 302.6
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#521E83
secondary
#7DB647
accent
#E64291
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #521E83

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

Preview Lab → · Contrast checker → · Palette generator →

#521E83 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva