#7F52D7#7F52D7
#7F52D7 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.195 H 294.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52D7 |
|---|---|
| RGB | rgb(127, 82, 215) |
| HSL | hsl(260, 62%, 58%) |
| HSV | hsv(260, 62%, 84%) |
| CMYK | cmyk(40.9%, 61.9%, 0%, 15.7%) |
| CIE-LAB | lab(46.25, 47.86, -61.93) |
| CIE-LCH | lch(46.25, 78.27, 307.70°) |
| OKLab | oklab(55.71% 0.0818 -0.1766) |
| OKLCH | oklch(55.71% 0.195 294.9) |
| XYZ | xyz(24.0322, 15.4524, 65.9932) |
| Luminance | 0.1545 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.65
Light Indigo
#6D5ACF
ΔE00 4.10
Slate Blue
#6A5ACD
ΔE00 4.65
Bluish Purple
#703BE7
ΔE00 5.94
Dark Periwinkle
#665FD1
ΔE00 6.13
Iris
#6258C4
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52D7 #AAD752
analogous
#5267D7 #7F52D7 #C152D7
triadic
#7F52D7 #D77F52 #52D77F
tetradic
#7F52D7 #D75267 #AAD752 #52D7C1
square
#7F52D7 #D75267 #AAD752 #52D7C1
split-complementary
#7F52D7 #D7C152 #67D752
monochromatic
#46218E #5E2CC0 #7F52D7 #A484E2 #C9B5EE
Accessibility & contrast
On white
5.13
#7F52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#7F52D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52D7
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52D7 | 1.00 | 5.13 | 4.09 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#68708D
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7f52d7; /* rgb */ color: rgb(127, 82, 215); /* oklch */ color: oklch(55.7% 0.195 294.9);
Tailwind
colors: {
custom: {
50: '#aa85e4',
500: '#7f52d7',
950: '#000000',
},
}SCSS
$custom: #7f52d7; $custom-light: #aa85e4; $custom-dark: #000000;
JSON
{
"hex": "#7f52d7",
"rgb": {
"r": 127,
"g": 82,
"b": 215
},
"hsl": {
"h": 260.301,
"s": 62.441,
"l": 58.235
},
"oklch": {
"l": 0.55712,
"c": 0.19461,
"h": 294.9
},
"luminance": 0.15453
}Semantic roles & 50–950 ramp
primary
#7F52D7
secondary
#CBDDA8
accent
#E642AE
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84