#521EA6#521EA6

#521EA6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.196 H 292.5°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#521EA6
RGBrgb(82, 30, 166)
HSLhsl(263, 69%, 38%)
HSVhsv(263, 82%, 65%)
CMYKcmyk(50.6%, 81.9%, 0%, 34.9%)
CIE-LABlab(28.05, 52.50, -63.06)
CIE-LCHlch(28.05, 82.05, 309.78°)
OKLaboklab(40.38% 0.0749 -0.1811)
OKLCHoklch(40.38% 0.196 292.5)
XYZxyz(10.8249, 5.4752, 36.5554)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521EA6 #72A61E
analogous
#1E2EA6 #521EA6 #961EA6
triadic
#521EA6 #A6521E #1EA652
tetradic
#521EA6 #A61E2E #72A61E #1EA696
square
#521EA6 #A61E2E #72A61E #1EA696
split-complementary
#521EA6 #A6961E #2EA61E
monochromatic
#1F0B3E #381572 #521EA6 #6C29D8 #905DE2

Accessibility & contrast

On white

10.02
#521EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521EA6
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521EA6#FFFFFF#000000##FFFFFF
##521EA61.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#364663
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #521ea6;
/* rgb */ color: rgb(82, 30, 166);
/* oklch */ color: oklch(40.4% 0.196 292.5);
Tailwind
colors: {
  custom: {
    50: '#8c62c2',
    500: '#521ea6',
    950: '#000000',
  },
}
SCSS
$custom: #521ea6;
$custom-light: #8c62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#521ea6",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 262.941,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40384,
    "c": 0.19601,
    "h": 292.5
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#521EA6
secondary
#9DC65A
accent
#EC3CA9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #521EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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