#bafc7f
a light, electric green · cool · closest name: khaki
RGB
186, 252, 127
HSL
92°, 95%, 74%
CMYK
26, 0, 50, 1
Luminance
0.8159
Every format
| HEX | #bafc7f |
| RGB | rgb(186, 252, 127) |
| HSL | hsl(92, 95%, 74%) |
| CMYK | cmyk(26%, 0%, 50%, 1%) |
| LAB | lab(92.4 -41.0 52.9) |
| LCH | lch(92.4 66.9 127.7) |
| OKLCH | oklch(0.920 0.170 131.9) |
Copy-ready code
/* CSS */
color: #bafc7f;
background-color: #bafc7f;
/* Tailwind (arbitrary) */
class="text-[#bafc7f] bg-[#bafc7f]"
/* SCSS */
$brand: #bafc7f;
/* SwiftUI */
Color(red: 0.729, green: 0.988, blue: 0.498)
/* Android */
Color.parseColor("#bafc7f")Accessibility — WCAG contrast
Aa
#bafc7f on white: 1.21:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bafc7f on black: 17.32:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green98.8%
Blue49.8%
CMYK percentages
Cyan26.2%
Magenta0.0%
Yellow49.6%
Key (black)1.2%
Color previews
#bafc7f text on a black background
contrast 17.32:1
Card sample
#bafc7f text on a white background
contrast 1.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bafc7f;
Background color
Panel with #bafc7f background
background-color: #bafc7f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bafc7f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 252, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 252, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafc7f; background: linear-gradient(135deg, #bafc7f, #7FFC97);