#bafd27
a balanced, electric green · cool · closest name: yellow
RGB
186, 253, 39
HSL
79°, 98%, 57%
CMYK
27, 0, 85, 1
Luminance
0.8084
Every format
| HEX | #bafd27 |
| RGB | rgb(186, 253, 39) |
| HSL | hsl(79, 98%, 57%) |
| CMYK | cmyk(27%, 0%, 85%, 1%) |
| LAB | lab(92.1 -47.3 84.0) |
| LCH | lch(92.1 96.4 119.4) |
| OKLCH | oklch(0.916 0.228 127.0) |
Copy-ready code
/* CSS */
color: #bafd27;
background-color: #bafd27;
/* Tailwind (arbitrary) */
class="text-[#bafd27] bg-[#bafd27]"
/* SCSS */
$brand: #bafd27;
/* SwiftUI */
Color(red: 0.729, green: 0.992, blue: 0.153)
/* Android */
Color.parseColor("#bafd27")Accessibility — WCAG contrast
Aa
#bafd27 on white: 1.22:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bafd27 on black: 17.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green99.2%
Blue15.3%
CMYK percentages
Cyan26.5%
Magenta0.0%
Yellow84.6%
Key (black)0.8%
Color previews
#bafd27 text on a black background
contrast 17.17:1
Card sample
#bafd27 text on a white background
contrast 1.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bafd27;
Background color
Panel with #bafd27 background
background-color: #bafd27;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bafd27;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 253, 39, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 253, 39, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafd27; background: linear-gradient(135deg, #bafd27, #2BFD27);