#7F52D6#7F52D6
#7F52D6 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.6% C 0.193 H 295.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52D6 |
|---|---|
| RGB | rgb(127, 82, 214) |
| HSL | hsl(260, 62%, 58%) |
| HSV | hsv(260, 62%, 84%) |
| CMYK | cmyk(40.7%, 61.7%, 0%, 16.1%) |
| CIE-LAB | lab(46.18, 47.60, -61.47) |
| CIE-LCH | lch(46.18, 77.74, 307.75°) |
| OKLab | oklab(55.64% 0.0819 -0.1752) |
| OKLCH | oklch(55.64% 0.193 295.1) |
| XYZ | xyz(23.9041, 15.4011, 65.3186) |
| Luminance | 0.1540 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.75
Light Indigo
#6D5ACF
ΔE00 4.09
Slate Blue
#6A5ACD
ΔE00 4.64
Bluish Purple
#703BE7
ΔE00 5.98
Dark Periwinkle
#665FD1
ΔE00 6.14
Iris
#6258C4
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52D6 #A9D652
analogous
#5267D6 #7F52D6 #C152D6
triadic
#7F52D6 #D67F52 #52D67F
tetradic
#7F52D6 #D65267 #A9D652 #52D6C1
square
#7F52D6 #D65267 #A9D652 #52D6C1
split-complementary
#7F52D6 #D6C152 #67D652
monochromatic
#46218C #5E2DBE #7F52D6 #A483E2 #C8B5ED
Accessibility & contrast
On white
5.15
#7F52D6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#7F52D6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52D6
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52D6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52D6 | 1.00 | 5.15 | 4.08 | 5.15 |
| #FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#68708C
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7f52d6; /* rgb */ color: rgb(127, 82, 214); /* oklch */ color: oklch(55.6% 0.193 295.1);
Tailwind
colors: {
custom: {
50: '#aa85e3',
500: '#7f52d6',
950: '#000000',
},
}SCSS
$custom: #7f52d6; $custom-light: #aa85e3; $custom-dark: #000000;
JSON
{
"hex": "#7f52d6",
"rgb": {
"r": 127,
"g": 82,
"b": 214
},
"hsl": {
"h": 260.455,
"s": 61.682,
"l": 58.039
},
"oklch": {
"l": 0.5564,
"c": 0.19341,
"h": 295.1
},
"luminance": 0.15402
}Semantic roles & 50–950 ramp
primary
#7F52D6
secondary
#CADCA8
accent
#E543AE
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B16
muted
#7F7C84