#baf921
a balanced, electric green · cool · closest name: yellow
RGB
186, 249, 33
HSL
78°, 95%, 55%
CMYK
25, 0, 87, 2
Luminance
0.7830
Every format
| HEX | #baf921 |
| RGB | rgb(186, 249, 33) |
| HSL | hsl(78, 95%, 55%) |
| CMYK | cmyk(25%, 0%, 87%, 2%) |
| LAB | lab(90.9 -45.7 84.2) |
| LCH | lch(90.9 95.8 118.5) |
| OKLCH | oklch(0.906 0.225 126.3) |
Copy-ready code
/* CSS */
color: #baf921;
background-color: #baf921;
/* Tailwind (arbitrary) */
class="text-[#baf921] bg-[#baf921]"
/* SCSS */
$brand: #baf921;
/* SwiftUI */
Color(red: 0.729, green: 0.976, blue: 0.129)
/* Android */
Color.parseColor("#baf921")Accessibility — WCAG contrast
Aa
#baf921 on white: 1.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#baf921 on black: 16.66:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green97.6%
Blue12.9%
CMYK percentages
Cyan25.3%
Magenta0.0%
Yellow86.7%
Key (black)2.4%
Color previews
#baf921 text on a black background
contrast 16.66:1
Card sample
#baf921 text on a white background
contrast 1.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #baf921;
Background color
Panel with #baf921 background
background-color: #baf921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #baf921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 249, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 249, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf921; background: linear-gradient(135deg, #baf921, #2AF921);