#bafb21
a balanced, electric green · cool · closest name: yellow
RGB
186, 251, 33
HSL
78°, 97%, 56%
CMYK
26, 0, 87, 2
Luminance
0.7954
Every format
| HEX | #bafb21 |
| RGB | rgb(186, 251, 33) |
| HSL | hsl(78, 97%, 56%) |
| CMYK | cmyk(26%, 0%, 87%, 2%) |
| LAB | lab(91.5 -46.6 84.6) |
| LCH | lch(91.5 96.6 118.8) |
| OKLCH | oklch(0.911 0.227 126.6) |
Copy-ready code
/* CSS */
color: #bafb21;
background-color: #bafb21;
/* Tailwind (arbitrary) */
class="text-[#bafb21] bg-[#bafb21]"
/* SCSS */
$brand: #bafb21;
/* SwiftUI */
Color(red: 0.729, green: 0.984, blue: 0.129)
/* Android */
Color.parseColor("#bafb21")Accessibility — WCAG contrast
Aa
#bafb21 on white: 1.24:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bafb21 on black: 16.91:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green98.4%
Blue12.9%
CMYK percentages
Cyan25.9%
Magenta0.0%
Yellow86.9%
Key (black)1.6%
Color previews
#bafb21 text on a black background
contrast 16.91:1
Card sample
#bafb21 text on a white background
contrast 1.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bafb21;
Background color
Panel with #bafb21 background
background-color: #bafb21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bafb21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 251, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 251, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafb21; background: linear-gradient(135deg, #bafb21, #29FB21);