#f2afff
a light, electric magenta / pink · warm · closest name: plum
RGB
242, 175, 255
HSL
290°, 100%, 84%
CMYK
5, 31, 0, 0
Luminance
0.5676
Every format
| HEX | #f2afff |
| RGB | rgb(242, 175, 255) |
| HSL | hsl(290, 100%, 84%) |
| CMYK | cmyk(5%, 31%, 0%, 0%) |
| LAB | lab(80.0 37.5 -30.0) |
| LCH | lch(80.0 48.1 321.4) |
| OKLCH | oklch(0.843 0.130 320.9) |
Copy-ready code
/* CSS */
color: #f2afff;
background-color: #f2afff;
/* Tailwind (arbitrary) */
class="text-[#f2afff] bg-[#f2afff]"
/* SCSS */
$brand: #f2afff;
/* SwiftUI */
Color(red: 0.949, green: 0.686, blue: 1.000)
/* Android */
Color.parseColor("#f2afff")Accessibility — WCAG contrast
Aa
#f2afff on white: 1.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2afff on black: 12.35:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green68.6%
Blue100.0%
CMYK percentages
Cyan5.1%
Magenta31.4%
Yellow0.0%
Key (black)0.0%
Color previews
#f2afff text on a black background
contrast 12.35:1
Card sample
#f2afff text on a white background
contrast 1.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2afff;
Background color
Panel with #f2afff background
background-color: #f2afff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2afff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 175, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 175, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2afff; background: linear-gradient(135deg, #f2afff, #FFAFD7);