#f0ffad
a light, electric green · cool · closest name: khaki
RGB
240, 255, 173
HSL
71°, 100%, 84%
CMYK
6, 0, 32, 0
Luminance
0.9306
Every format
| HEX | #f0ffad |
| RGB | rgb(240, 255, 173) |
| HSL | hsl(71, 100%, 84%) |
| CMYK | cmyk(6%, 0%, 32%, 0%) |
| LAB | lab(97.3 -17.6 37.6) |
| LCH | lch(97.3 41.5 115.0) |
| OKLCH | oklch(0.970 0.105 116.8) |
Copy-ready code
/* CSS */
color: #f0ffad;
background-color: #f0ffad;
/* Tailwind (arbitrary) */
class="text-[#f0ffad] bg-[#f0ffad]"
/* SCSS */
$brand: #f0ffad;
/* SwiftUI */
Color(red: 0.941, green: 1.000, blue: 0.678)
/* Android */
Color.parseColor("#f0ffad")Accessibility — WCAG contrast
Aa
#f0ffad on white: 1.07:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0ffad on black: 19.61:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green100.0%
Blue67.8%
CMYK percentages
Cyan5.9%
Magenta0.0%
Yellow32.2%
Key (black)0.0%
Color previews
#f0ffad text on a black background
contrast 19.61:1
Card sample
#f0ffad text on a white background
contrast 1.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0ffad;
Background color
Panel with #f0ffad background
background-color: #f0ffad;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0ffad;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 255, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 255, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0ffad; background: linear-gradient(135deg, #f0ffad, #B9FFAD);