#521EA7#521EA7

#521EA7 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.197 H 292.2°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#521EA7
RGBrgb(82, 30, 167)
HSLhsl(263, 70%, 39%)
HSVhsv(263, 82%, 65%)
CMYKcmyk(50.9%, 82%, 0%, 34.5%)
CIE-LABlab(28.15, 52.76, -63.50)
CIE-LCHlch(28.15, 82.56, 309.72°)
OKLaboklab(40.48% 0.0745 -0.1824)
OKLCHoklch(40.48% 0.197 292.2)
XYZxyz(10.9170, 5.5120, 37.0404)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521EA7 #73A71E
analogous
#1E2EA7 #521EA7 #961EA7
triadic
#521EA7 #A7521E #1EA752
tetradic
#521EA7 #A71E2E #73A71E #1EA796
square
#521EA7 #A71E2E #73A71E #1EA796
split-complementary
#521EA7 #A7961E #2EA71E
monochromatic
#1F0B3F #391573 #521EA7 #6C2AD9 #905DE2

Accessibility & contrast

On white

9.99
#521EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#521EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521EA7
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521EA7#FFFFFF#000000##FFFFFF
##521EA71.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#354764
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #521ea7;
/* rgb */ color: rgb(82, 30, 167);
/* oklch */ color: oklch(40.5% 0.197 292.2);
Tailwind
colors: {
  custom: {
    50: '#8c62c2',
    500: '#521ea7',
    950: '#000000',
  },
}
SCSS
$custom: #521ea7;
$custom-light: #8c62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#521ea7",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 262.774,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40482,
    "c": 0.19707,
    "h": 292.2
  },
  "luminance": 0.05512
}

Semantic roles & 50–950 ramp

primary
#521EA7
secondary
#9DC65B
accent
#EC3BA9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #521EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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