#b2fa21
a balanced, electric green · cool · closest name: yellow
RGB
178, 250, 33
HSL
80°, 96%, 56%
CMYK
29, 0, 87, 2
Luminance
0.7795
Every format
| HEX | #b2fa21 |
| RGB | rgb(178, 250, 33) |
| HSL | hsl(80, 96%, 56%) |
| CMYK | cmyk(29%, 0%, 87%, 2%) |
| LAB | lab(90.8 -49.1 83.8) |
| LCH | lch(90.8 97.1 120.3) |
| OKLCH | oklch(0.904 0.230 128.1) |
Copy-ready code
/* CSS */
color: #b2fa21;
background-color: #b2fa21;
/* Tailwind (arbitrary) */
class="text-[#b2fa21] bg-[#b2fa21]"
/* SCSS */
$brand: #b2fa21;
/* SwiftUI */
Color(red: 0.698, green: 0.980, blue: 0.129)
/* Android */
Color.parseColor("#b2fa21")Accessibility — WCAG contrast
Aa
#b2fa21 on white: 1.27:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b2fa21 on black: 16.59:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green98.0%
Blue12.9%
CMYK percentages
Cyan28.8%
Magenta0.0%
Yellow86.8%
Key (black)2.0%
Color previews
#b2fa21 text on a black background
contrast 16.59:1
Card sample
#b2fa21 text on a white background
contrast 1.27:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b2fa21;
Background color
Panel with #b2fa21 background
background-color: #b2fa21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b2fa21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 250, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 250, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2fa21; background: linear-gradient(135deg, #b2fa21, #21FA21);