#7F52DC#7F52DC
#7F52DC is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.1% C 0.201 H 294.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #7F52DC |
|---|---|
| RGB | rgb(127, 82, 220) |
| HSL | hsl(260, 66%, 59%) |
| HSV | hsv(260, 63%, 86%) |
| CMYK | cmyk(42.3%, 62.7%, 0%, 13.7%) |
| CIE-LAB | lab(46.60, 49.20, -64.22) |
| CIE-LCH | lch(46.60, 80.90, 307.45°) |
| OKLab | oklab(56.08% 0.0815 -0.1833) |
| OKLCH | oklch(56.08% 0.201 294) |
| XYZ | xyz(24.6845, 15.7133, 69.4287) |
| Luminance | 0.1571 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.19
Light Indigo
#6D5ACF
ΔE00 4.23
Slate Blue
#6A5ACD
ΔE00 4.79
Bluish Purple
#703BE7
ΔE00 5.79
Dark Periwinkle
#665FD1
ΔE00 6.11
Iris
#6258C4
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F52DC #AFDC52
analogous
#526ADC #7F52DC #C452DC
triadic
#7F52DC #DC7F52 #52DC7F
tetradic
#7F52DC #DC526A #AFDC52 #52DCC4
square
#7F52DC #DC526A #AFDC52 #52DCC4
split-complementary
#7F52DC #DCC452 #6ADC52
monochromatic
#451E95 #5D29C8 #7F52DC #A585E6 #CAB8F1
Accessibility & contrast
On white
5.07
#7F52DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.14
#7F52DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F52DC
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F52DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F52DC | 1.00 | 5.07 | 4.14 | 5.07 |
| #FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#667290
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7f52dc; /* rgb */ color: rgb(127, 82, 220); /* oklch */ color: oklch(56.1% 0.201 294.0);
Tailwind
colors: {
custom: {
50: '#aa85e8',
500: '#7f52dc',
950: '#000000',
},
}SCSS
$custom: #7f52dc; $custom-light: #aa85e8; $custom-dark: #000000;
JSON
{
"hex": "#7f52dc",
"rgb": {
"r": 127,
"g": 82,
"b": 220
},
"hsl": {
"h": 259.565,
"s": 66.346,
"l": 59.216
},
"oklch": {
"l": 0.56075,
"c": 0.20058,
"h": 294
},
"luminance": 0.15714
}Semantic roles & 50–950 ramp
primary
#7F52DC
secondary
#CEE0AA
accent
#E93FB2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84