#ff7fef
a light, electric magenta / pink · warm · closest name: violet
RGB
255, 127, 239
HSL
308°, 100%, 75%
CMYK
0, 50, 6, 0
Luminance
0.4267
Every format
| HEX | #ff7fef |
| RGB | rgb(255, 127, 239) |
| HSL | hsl(308, 100%, 75%) |
| CMYK | cmyk(0%, 50%, 6%, 0%) |
| LAB | lab(71.3 62.7 -34.6) |
| LCH | lch(71.3 71.7 331.1) |
| OKLCH | oklch(0.779 0.203 332.2) |
Copy-ready code
/* CSS */
color: #ff7fef;
background-color: #ff7fef;
/* Tailwind (arbitrary) */
class="text-[#ff7fef] bg-[#ff7fef]"
/* SCSS */
$brand: #ff7fef;
/* SwiftUI */
Color(red: 1.000, green: 0.498, blue: 0.937)
/* Android */
Color.parseColor("#ff7fef")Accessibility — WCAG contrast
Aa
#ff7fef on white: 2.20:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ff7fef on black: 9.53:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green49.8%
Blue93.7%
CMYK percentages
Cyan0.0%
Magenta50.2%
Yellow6.3%
Key (black)0.0%
Color previews
#ff7fef text on a black background
contrast 9.53:1
Card sample
#ff7fef text on a white background
contrast 2.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ff7fef;
Background color
Panel with #ff7fef background
background-color: #ff7fef;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ff7fef;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 127, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 127, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ff7fef; background: linear-gradient(135deg, #ff7fef, #FF7F9A);