#f0f599
a light, electric yellow · cool · closest name: khaki
RGB
240, 245, 153
HSL
63°, 82%, 78%
CMYK
2, 0, 38, 4
Luminance
0.8613
Every format
| HEX | #f0f599 |
| RGB | rgb(240, 245, 153) |
| HSL | hsl(63, 82%, 78%) |
| CMYK | cmyk(2%, 0%, 38%, 4%) |
| LAB | lab(94.4 -15.1 43.7) |
| LCH | lch(94.4 46.3 109.0) |
| OKLCH | oklch(0.946 0.115 111.1) |
Copy-ready code
/* CSS */
color: #f0f599;
background-color: #f0f599;
/* Tailwind (arbitrary) */
class="text-[#f0f599] bg-[#f0f599]"
/* SCSS */
$brand: #f0f599;
/* SwiftUI */
Color(red: 0.941, green: 0.961, blue: 0.600)
/* Android */
Color.parseColor("#f0f599")Accessibility — WCAG contrast
Aa
#f0f599 on white: 1.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0f599 on black: 18.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green96.1%
Blue60.0%
CMYK percentages
Cyan2.0%
Magenta0.0%
Yellow37.6%
Key (black)3.9%
Color previews
#f0f599 text on a black background
contrast 18.23:1
Card sample
#f0f599 text on a white background
contrast 1.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0f599;
Background color
Panel with #f0f599 background
background-color: #f0f599;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0f599;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 245, 153, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 245, 153, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0f599; background: linear-gradient(135deg, #f0f599, #B2F599);