#7F52CA#7F52CA
#7F52CA is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.179 H 297.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52CA |
|---|---|
| RGB | rgb(127, 82, 202) |
| HSL | hsl(263, 53%, 56%) |
| HSV | hsv(263, 59%, 79%) |
| CMYK | cmyk(37.1%, 59.4%, 0%, 20.8%) |
| CIE-LAB | lab(45.37, 44.43, -55.88) |
| CIE-LCH | lch(45.37, 71.39, 308.49°) |
| OKLab | oklab(54.8% 0.0825 -0.1588) |
| OKLCH | oklch(54.8% 0.179 297.4) |
| XYZ | xyz(22.4277, 14.8105, 57.5428) |
| Luminance | 0.1481 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.23
Light Indigo
#6D5ACF
ΔE00 4.42
Slate Blue
#6A5ACD
ΔE00 4.86
Royal Purple
#7851A9
ΔE00 5.54
Iris
#6258C4
ΔE00 6.00
Deep Lavender
#8D5EB7
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52CA #9DCA52
analogous
#5261CA #7F52CA #BB52CA
triadic
#7F52CA #CA7F52 #52CA7F
tetradic
#7F52CA #CA5261 #9DCA52 #52CABB
square
#7F52CA #CA5261 #9DCA52 #52CABB
split-complementary
#7F52CA #CABB52 #61CA52
monochromatic
#46267C #6134AB #7F52CA #A281D8 #C4B0E7
Accessibility & contrast
On white
5.30
#7F52CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.96
#7F52CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52CA
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52CA | 1.00 | 5.30 | 3.96 | 5.30 |
| #FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CCE
Deuteranopia (green-blind)
#226AC7
Tritanopia (blue-blind)
#6D6C86
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7f52ca; /* rgb */ color: rgb(127, 82, 202); /* oklch */ color: oklch(54.8% 0.179 297.4);
Tailwind
colors: {
custom: {
50: '#a984db',
500: '#7f52ca',
950: '#000000',
},
}SCSS
$custom: #7f52ca; $custom-light: #a984db; $custom-dark: #000000;
JSON
{
"hex": "#7f52ca",
"rgb": {
"r": 127,
"g": 82,
"b": 202
},
"hsl": {
"h": 262.5,
"s": 53.097,
"l": 55.686
},
"oklch": {
"l": 0.54797,
"c": 0.17892,
"h": 297.4
},
"luminance": 0.14811
}Semantic roles & 50–950 ramp
primary
#7F52CA
secondary
#C2D5A3
accent
#DD4BA6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83