#bafc39
a balanced, electric green · cool · closest name: yellow
RGB
186, 252, 57
HSL
80°, 97%, 61%
CMYK
26, 0, 77, 1
Luminance
0.8036
Every format
| HEX | #bafc39 |
| RGB | rgb(186, 252, 57) |
| HSL | hsl(80, 97%, 61%) |
| CMYK | cmyk(26%, 0%, 77%, 1%) |
| LAB | lab(91.8 -46.2 79.4) |
| LCH | lch(91.8 91.9 120.2) |
| OKLCH | oklch(0.914 0.220 127.3) |
Copy-ready code
/* CSS */
color: #bafc39;
background-color: #bafc39;
/* Tailwind (arbitrary) */
class="text-[#bafc39] bg-[#bafc39]"
/* SCSS */
$brand: #bafc39;
/* SwiftUI */
Color(red: 0.729, green: 0.988, blue: 0.224)
/* Android */
Color.parseColor("#bafc39")Accessibility — WCAG contrast
Aa
#bafc39 on white: 1.23:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bafc39 on black: 17.07:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green98.8%
Blue22.4%
CMYK percentages
Cyan26.2%
Magenta0.0%
Yellow77.4%
Key (black)1.2%
Color previews
#bafc39 text on a black background
contrast 17.07:1
Card sample
#bafc39 text on a white background
contrast 1.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bafc39;
Background color
Panel with #bafc39 background
background-color: #bafc39;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bafc39;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 252, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 252, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafc39; background: linear-gradient(135deg, #bafc39, #39FC3A);