#ffef2c
a balanced, electric yellow · cool · closest name: yellow
RGB
255, 239, 44
HSL
56°, 100%, 59%
CMYK
0, 6, 83, 0
Luminance
0.8317
Every format
| HEX | #ffef2c |
| RGB | rgb(255, 239, 44) |
| HSL | hsl(56, 100%, 59%) |
| CMYK | cmyk(0%, 6%, 83%, 0%) |
| LAB | lab(93.1 -13.2 85.7) |
| LCH | lch(93.1 86.7 98.8) |
| OKLCH | oklch(0.936 0.190 104.3) |
Copy-ready code
/* CSS */
color: #ffef2c;
background-color: #ffef2c;
/* Tailwind (arbitrary) */
class="text-[#ffef2c] bg-[#ffef2c]"
/* SCSS */
$brand: #ffef2c;
/* SwiftUI */
Color(red: 1.000, green: 0.937, blue: 0.173)
/* Android */
Color.parseColor("#ffef2c")Accessibility — WCAG contrast
Aa
#ffef2c on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffef2c on black: 17.63:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green93.7%
Blue17.3%
CMYK percentages
Cyan0.0%
Magenta6.3%
Yellow82.7%
Key (black)0.0%
Color previews
#ffef2c text on a black background
contrast 17.63:1
Card sample
#ffef2c text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffef2c;
Background color
Panel with #ffef2c background
background-color: #ffef2c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffef2c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 239, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 239, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffef2c; background: linear-gradient(135deg, #ffef2c, #82FF2C);