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