#7F52F2#7F52F2
#7F52F2 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.7% C 0.226 H 290.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52F2 |
|---|---|
| RGB | rgb(127, 82, 242) |
| HSL | hsl(257, 86%, 64%) |
| HSV | hsv(257, 66%, 95%) |
| CMYK | cmyk(47.5%, 66.1%, 0%, 5.1%) |
| CIE-LAB | lab(48.20, 55.12, -74.03) |
| CIE-LCH | lch(48.20, 92.30, 306.67°) |
| OKLab | oklab(57.74% 0.079 -0.2121) |
| OKLCH | oklch(57.74% 0.226 290.4) |
| XYZ | xyz(27.7921, 16.9563, 85.7957) |
| Luminance | 0.1696 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.46
Light Indigo
#6D5ACF
ΔE00 5.81
Mediumslateblue
#7B68EE
ΔE00 5.88
Bluish Purple
#703BE7
ΔE00 6.31
Slate Blue
#6A5ACD
ΔE00 6.33
Purpleish Blue
#6140EF
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52F2 #C5F252
analogous
#5275F2 #7F52F2 #CF52F2
triadic
#7F52F2 #F27F52 #52F27F
tetradic
#7F52F2 #F25275 #C5F252 #52F2CF
square
#7F52F2 #F25275 #C5F252 #52F2CF
split-complementary
#7F52F2 #F2CF52 #75F252
monochromatic
#3F0EBC #5519EE #7F52F2 #A98BF6 #D3C4FB
Accessibility & contrast
On white
4.78
#7F52F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#7F52F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52F2
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52F2 | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#5A7A9B
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7f52f2; /* rgb */ color: rgb(127, 82, 242); /* oklch */ color: oklch(57.7% 0.226 290.4);
Tailwind
colors: {
custom: {
50: '#ad85f7',
500: '#7f52f2',
950: '#000000',
},
}SCSS
$custom: #7f52f2; $custom-light: #ad85f7; $custom-dark: #000000;
JSON
{
"hex": "#7f52f2",
"rgb": {
"r": 127,
"g": 82,
"b": 242
},
"hsl": {
"h": 256.875,
"s": 86.022,
"l": 63.529
},
"oklch": {
"l": 0.57742,
"c": 0.22639,
"h": 290.4
},
"luminance": 0.16957
}Semantic roles & 50–950 ramp
primary
#7F52F2
secondary
#DCECB4
accent
#E303A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85