#f2ee21
a balanced, electric yellow · cool · closest name: yellow
RGB
242, 238, 33
HSL
59°, 89%, 54%
CMYK
0, 2, 86, 5
Luminance
0.8014
Every format
| HEX | #f2ee21 |
| RGB | rgb(242, 238, 33) |
| HSL | hsl(59, 89%, 54%) |
| CMYK | cmyk(0%, 2%, 86%, 5%) |
| LAB | lab(91.8 -18.4 86.4) |
| LCH | lch(91.8 88.3 102.0) |
| OKLCH | oklch(0.923 0.194 108.4) |
Copy-ready code
/* CSS */
color: #f2ee21;
background-color: #f2ee21;
/* Tailwind (arbitrary) */
class="text-[#f2ee21] bg-[#f2ee21]"
/* SCSS */
$brand: #f2ee21;
/* SwiftUI */
Color(red: 0.949, green: 0.933, blue: 0.129)
/* Android */
Color.parseColor("#f2ee21")Accessibility — WCAG contrast
Aa
#f2ee21 on white: 1.23:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f2ee21 on black: 17.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.9%
Green93.3%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta1.7%
Yellow86.4%
Key (black)5.1%
Color previews
#f2ee21 text on a black background
contrast 17.03:1
Card sample
#f2ee21 text on a white background
contrast 1.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f2ee21;
Background color
Panel with #f2ee21 background
background-color: #f2ee21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f2ee21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(242, 238, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 238, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ee21; background: linear-gradient(135deg, #f2ee21, #6AF221);