#f0cd64
a light, electric yellow · cool · closest name: khaki
RGB
240, 205, 100
HSL
45°, 82%, 67%
CMYK
0, 15, 58, 6
Luminance
0.6311
Every format
| HEX | #f0cd64 |
| RGB | rgb(240, 205, 100) |
| HSL | hsl(45, 82%, 67%) |
| CMYK | cmyk(0%, 15%, 58%, 6%) |
| LAB | lab(83.5 0.2 55.9) |
| LCH | lch(83.5 55.9 89.8) |
| OKLCH | oklch(0.858 0.130 91.0) |
Copy-ready code
/* CSS */
color: #f0cd64;
background-color: #f0cd64;
/* Tailwind (arbitrary) */
class="text-[#f0cd64] bg-[#f0cd64]"
/* SCSS */
$brand: #f0cd64;
/* SwiftUI */
Color(red: 0.941, green: 0.804, blue: 0.392)
/* Android */
Color.parseColor("#f0cd64")Accessibility — WCAG contrast
Aa
#f0cd64 on white: 1.54:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0cd64 on black: 13.62:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green80.4%
Blue39.2%
CMYK percentages
Cyan0.0%
Magenta14.6%
Yellow58.3%
Key (black)5.9%
Color previews
#f0cd64 text on a black background
contrast 13.62:1
Card sample
#f0cd64 text on a white background
contrast 1.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0cd64;
Background color
Panel with #f0cd64 background
background-color: #f0cd64;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0cd64;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 205, 100, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 205, 100, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0cd64; background: linear-gradient(135deg, #f0cd64, #B6F064);