#7F52C8#7F52C8
#7F52C8 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.176 H 297.9°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52C8 |
|---|---|
| RGB | rgb(127, 82, 200) |
| HSL | hsl(263, 52%, 55%) |
| HSV | hsv(263, 59%, 78%) |
| CMYK | cmyk(36.5%, 59%, 0%, 21.6%) |
| CIE-LAB | lab(45.24, 43.91, -54.94) |
| CIE-LCH | lch(45.24, 70.33, 308.63°) |
| OKLab | oklab(54.66% 0.0825 -0.156) |
| OKLCH | oklch(54.66% 0.176 297.9) |
| XYZ | xyz(22.1924, 14.7164, 56.3037) |
| Luminance | 0.1472 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.51
Light Indigo
#6D5ACF
ΔE00 4.55
Slate Blue
#6A5ACD
ΔE00 4.97
Royal Purple
#7851A9
ΔE00 5.23
Deep Lavender
#8D5EB7
ΔE00 6.01
Iris
#6258C4
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52C8 #9BC852
analogous
#5260C8 #7F52C8 #BA52C8
triadic
#7F52C8 #C87F52 #52C87F
tetradic
#7F52C8 #C85260 #9BC852 #52C8BA
square
#7F52C8 #C85260 #9BC852 #52C8BA
split-complementary
#7F52C8 #C8BA52 #60C852
monochromatic
#462779 #6135A8 #7F52C8 #A180D7 #C4AFE6
Accessibility & contrast
On white
5.33
#7F52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#7F52C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52C8
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52C8 | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#096BCC
Deuteranopia (green-blind)
#256AC5
Tritanopia (blue-blind)
#6E6B85
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7f52c8; /* rgb */ color: rgb(127, 82, 200); /* oklch */ color: oklch(54.7% 0.176 297.9);
Tailwind
colors: {
custom: {
50: '#a984d9',
500: '#7f52c8',
950: '#000000',
},
}SCSS
$custom: #7f52c8; $custom-light: #a984d9; $custom-dark: #000000;
JSON
{
"hex": "#7f52c8",
"rgb": {
"r": 127,
"g": 82,
"b": 200
},
"hsl": {
"h": 262.881,
"s": 51.754,
"l": 55.294
},
"oklch": {
"l": 0.54661,
"c": 0.17648,
"h": 297.9
},
"luminance": 0.14717
}Semantic roles & 50–950 ramp
primary
#7F52C8
secondary
#C1D4A2
accent
#DB4DA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83