#7f3aff
a balanced, electric violet · warm · closest name: blue
RGB
127, 58, 255
HSL
261°, 100%, 61%
CMYK
50, 77, 0, 0
Luminance
0.1476
Every format
| HEX | #7f3aff |
| RGB | rgb(127, 58, 255) |
| HSL | hsl(261, 100%, 61%) |
| CMYK | cmyk(50%, 77%, 0%, 0%) |
| LAB | lab(45.3 69.7 -86.0) |
| LCH | lch(45.3 110.7 309.0) |
| OKLCH | oklch(0.560 0.265 291.2) |
Copy-ready code
/* CSS */
color: #7f3aff;
background-color: #7f3aff;
/* Tailwind (arbitrary) */
class="text-[#7f3aff] bg-[#7f3aff]"
/* SCSS */
$brand: #7f3aff;
/* SwiftUI */
Color(red: 0.498, green: 0.227, blue: 1.000)
/* Android */
Color.parseColor("#7f3aff")Accessibility — WCAG contrast
Aa
#7f3aff on white: 5.31:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#7f3aff on black: 3.95:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red49.8%
Green22.7%
Blue100.0%
CMYK percentages
Cyan50.2%
Magenta77.3%
Yellow0.0%
Key (black)0.0%
Color previews
#7f3aff text on a black background
contrast 3.95:1
Card sample
#7f3aff text on a white background
contrast 5.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #7f3aff;
Background color
Panel with #7f3aff background
background-color: #7f3aff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #7f3aff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(127, 58, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 58, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f3aff; background: linear-gradient(135deg, #7f3aff, #FF3AFC);