#521FA7#521FA7
#521FA7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.196 H 292.1°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).
Color values
| HEX | #521FA7 |
|---|---|
| RGB | rgb(82, 31, 167) |
| HSL | hsl(263, 69%, 39%) |
| HSV | hsv(263, 81%, 65%) |
| CMYK | cmyk(50.9%, 81.4%, 0%, 34.5%) |
| CIE-LAB | lab(28.28, 52.36, -63.28) |
| CIE-LCH | lch(28.28, 82.13, 309.61°) |
| OKLab | oklab(40.58% 0.0739 -0.1818) |
| OKLCH | oklch(40.58% 0.196 292.1) |
| XYZ | xyz(10.9427, 5.5634, 37.0490) |
| Luminance | 0.0556 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.58
Violet Blue
#510AC9
ΔE00 4.53
Purple Blue
#5D21D0
ΔE00 5.78
Rebeccapurple
#663399
ΔE00 6.09
Ultramarine
#2000B1
ΔE00 6.46
Indigo
#4B0082
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#521FA7 #74A71F
analogous
#1F30A7 #521FA7 #961FA7
triadic
#521FA7 #A7521F #1FA752
tetradic
#521FA7 #A71F30 #74A71F #1FA796
square
#521FA7 #A71F30 #74A71F #1FA796
split-complementary
#521FA7 #A7961F #30A71F
monochromatic
#1F0C40 #391573 #521FA7 #6C2BD8 #905FE1
Accessibility & contrast
On white
9.94
#521FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#521FA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #521FA7
9.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##521FA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##521FA7 | 1.00 | 9.94 | 2.11 | 9.94 |
| #FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#354764
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #521fa7; /* rgb */ color: rgb(82, 31, 167); /* oklch */ color: oklch(40.6% 0.196 292.1);
Tailwind
colors: {
custom: {
50: '#8c62c2',
500: '#521fa7',
950: '#000000',
},
}SCSS
$custom: #521fa7; $custom-light: #8c62c2; $custom-dark: #000000;
JSON
{
"hex": "#521fa7",
"rgb": {
"r": 82,
"g": 31,
"b": 167
},
"hsl": {
"h": 262.5,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.40577,
"c": 0.19621,
"h": 292.1
},
"luminance": 0.05564
}Semantic roles & 50–950 ramp
primary
#521FA7
secondary
#9EC65C
accent
#EC3CAA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82