#521EA8#521EA8

#521EA8 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.198 H 292.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#521EA8
RGBrgb(82, 30, 168)
HSLhsl(263, 70%, 39%)
HSVhsv(263, 82%, 66%)
CMYKcmyk(51.2%, 82.1%, 0%, 34.1%)
CIE-LABlab(28.25, 53.02, -63.94)
CIE-LCHlch(28.25, 83.07, 309.67°)
OKLaboklab(40.58% 0.0742 -0.1837)
OKLCHoklch(40.58% 0.198 292)
XYZxyz(11.0098, 5.5491, 37.5292)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521EA8 #74A81E
analogous
#1E2FA8 #521EA8 #971EA8
triadic
#521EA8 #A8521E #1EA852
tetradic
#521EA8 #A81E2F #74A81E #1EA897
square
#521EA8 #A81E2F #74A81E #1EA897
split-complementary
#521EA8 #A8971E #2FA81E
monochromatic
#1F0B40 #391574 #521EA8 #6C2AD9 #905EE2

Accessibility & contrast

On white

9.95
#521EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#521EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521EA8
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521EA8#FFFFFF#000000##FFFFFF
##521EA81.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#344764
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #521ea8;
/* rgb */ color: rgb(82, 30, 168);
/* oklch */ color: oklch(40.6% 0.198 292.0);
Tailwind
colors: {
  custom: {
    50: '#8c62c3',
    500: '#521ea8',
    950: '#000000',
  },
}
SCSS
$custom: #521ea8;
$custom-light: #8c62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#521ea8",
  "rgb": {
    "r": 82,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 262.609,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4058,
    "c": 0.19813,
    "h": 292
  },
  "luminance": 0.0555
}

Semantic roles & 50–950 ramp

primary
#521EA8
secondary
#9EC75B
accent
#ED3BAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #521EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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