#f2ffab
a light, electric yellow · cool · closest name: khaki
RGB
242, 255, 171
HSL
69°, 100%, 84%
CMYK
5, 0, 33, 0
Luminance
0.9334
Every format
| HEX | #f2ffab |
| RGB | rgb(242, 255, 171) |
| HSL | hsl(69, 100%, 84%) |
| CMYK | cmyk(5%, 0%, 33%, 0%) |
| LAB | lab(97.4 -17.1 38.8) |
| LCH | lch(97.4 42.4 113.8) |
| OKLCH | oklch(0.971 0.107 115.6) |
Copy-ready code
/* CSS */
color: #f2ffab;
background-color: #f2ffab;
/* Tailwind (arbitrary) */
class="text-[#f2ffab] bg-[#f2ffab]"
/* SCSS */
$brand: #f2ffab;
/* SwiftUI */
Color(red: 0.949, green: 1.000, blue: 0.671)
/* Android */
Color.parseColor("#f2ffab")Accessibility — WCAG contrast
Aa
#f2ffab on white: 1.07:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2ffab on black: 19.67:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green100.0%
Blue67.1%
CMYK percentages
Cyan5.1%
Magenta0.0%
Yellow32.9%
Key (black)0.0%
Color previews
#f2ffab text on a black background
contrast 19.67:1
Card sample
#f2ffab text on a white background
contrast 1.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2ffab;
Background color
Panel with #f2ffab background
background-color: #f2ffab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2ffab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 255, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 255, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ffab; background: linear-gradient(135deg, #f2ffab, #BAFFAB);