#bafc21
a balanced, electric green · cool · closest name: yellow
RGB
186, 252, 33
HSL
78°, 97%, 56%
CMYK
26, 0, 87, 1
Luminance
0.8017
Every format
| HEX | #bafc21 |
| RGB | rgb(186, 252, 33) |
| HSL | hsl(78, 97%, 56%) |
| CMYK | cmyk(26%, 0%, 87%, 1%) |
| LAB | lab(91.8 -47.0 84.9) |
| LCH | lch(91.8 97.0 119.0) |
| OKLCH | oklch(0.913 0.228 126.8) |
Copy-ready code
/* CSS */
color: #bafc21;
background-color: #bafc21;
/* Tailwind (arbitrary) */
class="text-[#bafc21] bg-[#bafc21]"
/* SCSS */
$brand: #bafc21;
/* SwiftUI */
Color(red: 0.729, green: 0.988, blue: 0.129)
/* Android */
Color.parseColor("#bafc21")Accessibility — WCAG contrast
Aa
#bafc21 on white: 1.23:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bafc21 on black: 17.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green98.8%
Blue12.9%
CMYK percentages
Cyan26.2%
Magenta0.0%
Yellow86.9%
Key (black)1.2%
Color previews
#bafc21 text on a black background
contrast 17.03:1
Card sample
#bafc21 text on a white background
contrast 1.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bafc21;
Background color
Panel with #bafc21 background
background-color: #bafc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bafc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 252, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 252, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafc21; background: linear-gradient(135deg, #bafc21, #28FC21);