#f2feaf
a light, electric yellow · cool · closest name: khaki
RGB
242, 254, 175
HSL
69°, 98%, 84%
CMYK
5, 0, 31, 0
Luminance
0.9286
Every format
| HEX | #f2feaf |
| RGB | rgb(242, 254, 175) |
| HSL | hsl(69, 98%, 84%) |
| CMYK | cmyk(5%, 0%, 31%, 0%) |
| LAB | lab(97.2 -16.1 36.5) |
| LCH | lch(97.2 39.9 113.8) |
| OKLCH | oklch(0.970 0.101 115.3) |
Copy-ready code
/* CSS */
color: #f2feaf;
background-color: #f2feaf;
/* Tailwind (arbitrary) */
class="text-[#f2feaf] bg-[#f2feaf]"
/* SCSS */
$brand: #f2feaf;
/* SwiftUI */
Color(red: 0.949, green: 0.996, blue: 0.686)
/* Android */
Color.parseColor("#f2feaf")Accessibility — WCAG contrast
Aa
#f2feaf on white: 1.07:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2feaf on black: 19.57:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green99.6%
Blue68.6%
CMYK percentages
Cyan4.7%
Magenta0.0%
Yellow31.1%
Key (black)0.4%
Color previews
#f2feaf text on a black background
contrast 19.57:1
Card sample
#f2feaf text on a white background
contrast 1.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2feaf;
Background color
Panel with #f2feaf background
background-color: #f2feaf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2feaf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 254, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 254, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2feaf; background: linear-gradient(135deg, #f2feaf, #BDFEAF);