#ffecab
a light, electric yellow · cool · closest name: khaki
RGB
255, 236, 171
HSL
46°, 100%, 84%
CMYK
0, 8, 33, 0
Luminance
0.8419
Every format
| HEX | #ffecab |
| RGB | rgb(255, 236, 171) |
| HSL | hsl(46, 100%, 84%) |
| CMYK | cmyk(0%, 8%, 33%, 0%) |
| LAB | lab(93.5 -2.8 33.9) |
| LCH | lch(93.5 34.0 94.8) |
| OKLCH | oklch(0.943 0.085 93.7) |
Copy-ready code
/* CSS */
color: #ffecab;
background-color: #ffecab;
/* Tailwind (arbitrary) */
class="text-[#ffecab] bg-[#ffecab]"
/* SCSS */
$brand: #ffecab;
/* SwiftUI */
Color(red: 1.000, green: 0.925, blue: 0.671)
/* Android */
Color.parseColor("#ffecab")Accessibility — WCAG contrast
Aa
#ffecab on white: 1.18:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffecab on black: 17.84:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green92.5%
Blue67.1%
CMYK percentages
Cyan0.0%
Magenta7.5%
Yellow32.9%
Key (black)0.0%
Color previews
#ffecab text on a black background
contrast 17.84:1
Card sample
#ffecab text on a white background
contrast 1.18:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffecab;
Background color
Panel with #ffecab background
background-color: #ffecab;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffecab;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 236, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 236, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffecab; background: linear-gradient(135deg, #ffecab, #DAFFAB);