#ff7af0
a light, electric magenta / pink · warm · closest name: violet
RGB
255, 122, 240
HSL
307°, 100%, 74%
CMYK
0, 52, 6, 0
Luminance
0.4147
Every format
| HEX | #ff7af0 |
| RGB | rgb(255, 122, 240) |
| HSL | hsl(307, 100%, 74%) |
| CMYK | cmyk(0%, 52%, 6%, 0%) |
| LAB | lab(70.5 65.2 -36.5) |
| LCH | lch(70.5 74.7 330.8) |
| OKLCH | oklch(0.773 0.211 331.9) |
Copy-ready code
/* CSS */
color: #ff7af0;
background-color: #ff7af0;
/* Tailwind (arbitrary) */
class="text-[#ff7af0] bg-[#ff7af0]"
/* SCSS */
$brand: #ff7af0;
/* SwiftUI */
Color(red: 1.000, green: 0.478, blue: 0.941)
/* Android */
Color.parseColor("#ff7af0")Accessibility — WCAG contrast
Aa
#ff7af0 on white: 2.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ff7af0 on black: 9.29:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green47.8%
Blue94.1%
CMYK percentages
Cyan0.0%
Magenta52.2%
Yellow5.9%
Key (black)0.0%
Color previews
#ff7af0 text on a black background
contrast 9.29:1
Card sample
#ff7af0 text on a white background
contrast 2.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ff7af0;
Background color
Panel with #ff7af0 background
background-color: #ff7af0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ff7af0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 122, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 122, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ff7af0; background: linear-gradient(135deg, #ff7af0, #FF7A97);