#f0cd80
a light, electric yellow · warm · closest name: khaki
RGB
240, 205, 128
HSL
41°, 79%, 72%
CMYK
0, 15, 47, 6
Luminance
0.6375
Every format
| HEX | #f0cd80 |
| RGB | rgb(240, 205, 128) |
| HSL | hsl(41, 79%, 72%) |
| CMYK | cmyk(0%, 15%, 47%, 6%) |
| LAB | lab(83.8 2.5 42.8) |
| LCH | lch(83.8 42.8 86.6) |
| OKLCH | oklch(0.862 0.104 85.8) |
Copy-ready code
/* CSS */
color: #f0cd80;
background-color: #f0cd80;
/* Tailwind (arbitrary) */
class="text-[#f0cd80] bg-[#f0cd80]"
/* SCSS */
$brand: #f0cd80;
/* SwiftUI */
Color(red: 0.941, green: 0.804, blue: 0.502)
/* Android */
Color.parseColor("#f0cd80")Accessibility — WCAG contrast
Aa
#f0cd80 on white: 1.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0cd80 on black: 13.75:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green80.4%
Blue50.2%
CMYK percentages
Cyan0.0%
Magenta14.6%
Yellow46.7%
Key (black)5.9%
Color previews
#f0cd80 text on a black background
contrast 13.75:1
Card sample
#f0cd80 text on a white background
contrast 1.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0cd80;
Background color
Panel with #f0cd80 background
background-color: #f0cd80;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0cd80;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 205, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 205, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0cd80; background: linear-gradient(135deg, #f0cd80, #C8F080);