#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 |
|---|---|
| RGB | rgb(82, 30, 167) |
| HSL | hsl(263, 70%, 39%) |
| HSV | hsv(263, 82%, 65%) |
| CMYK | cmyk(50.9%, 82%, 0%, 34.5%) |
| CIE-LAB | lab(28.15, 52.76, -63.50) |
| CIE-LCH | lch(28.15, 82.56, 309.72°) |
| OKLab | oklab(40.48% 0.0745 -0.1824) |
| OKLCH | oklch(40.48% 0.197 292.2) |
| XYZ | xyz(10.9170, 5.5120, 37.0404) |
| Luminance | 0.0551 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.53
Violet Blue
#510AC9
ΔE00 4.49
Purple Blue
#5D21D0
ΔE00 5.82
Rebeccapurple
#663399
ΔE00 6.19
Ultramarine
#2000B1
ΔE00 6.37
Indigo
#4B0082
ΔE00 6.77
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 |
|---|---|---|---|---|
| ##521EA7 | 1.00 | 9.99 | 2.10 | 9.99 |
| #FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.99 | 1.00 | 21.00 | 1.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