#f0cf83
a light, electric yellow · warm · closest name: khaki
RGB
240, 207, 131
HSL
42°, 78%, 73%
CMYK
0, 14, 45, 6
Luminance
0.6479
Every format
| HEX | #f0cf83 |
| RGB | rgb(240, 207, 131) |
| HSL | hsl(42, 78%, 73%) |
| CMYK | cmyk(0%, 14%, 45%, 6%) |
| LAB | lab(84.4 1.8 41.9) |
| LCH | lch(84.4 42.0 87.6) |
| OKLCH | oklch(0.866 0.102 86.8) |
Copy-ready code
/* CSS */
color: #f0cf83;
background-color: #f0cf83;
/* Tailwind (arbitrary) */
class="text-[#f0cf83] bg-[#f0cf83]"
/* SCSS */
$brand: #f0cf83;
/* SwiftUI */
Color(red: 0.941, green: 0.812, blue: 0.514)
/* Android */
Color.parseColor("#f0cf83")Accessibility — WCAG contrast
Aa
#f0cf83 on white: 1.50:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0cf83 on black: 13.96:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green81.2%
Blue51.4%
CMYK percentages
Cyan0.0%
Magenta13.7%
Yellow45.4%
Key (black)5.9%
Color previews
#f0cf83 text on a black background
contrast 13.96:1
Card sample
#f0cf83 text on a white background
contrast 1.50:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0cf83;
Background color
Panel with #f0cf83 background
background-color: #f0cf83;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0cf83;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 207, 131, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 207, 131, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0cf83; background: linear-gradient(135deg, #f0cf83, #C8F083);