#baf402
a balanced, electric green · cool · closest name: yellow
RGB
186, 244, 2
HSL
74°, 98%, 48%
CMYK
24, 0, 99, 4
Luminance
0.7514
Every format
| HEX | #baf402 |
| RGB | rgb(186, 244, 2) |
| HSL | hsl(74, 98%, 48%) |
| CMYK | cmyk(24%, 0%, 99%, 4%) |
| LAB | lab(89.5 -44.0 86.5) |
| LCH | lch(89.5 97.1 117.0) |
| OKLCH | oklch(0.894 0.225 125.2) |
Copy-ready code
/* CSS */
color: #baf402;
background-color: #baf402;
/* Tailwind (arbitrary) */
class="text-[#baf402] bg-[#baf402]"
/* SCSS */
$brand: #baf402;
/* SwiftUI */
Color(red: 0.729, green: 0.957, blue: 0.008)
/* Android */
Color.parseColor("#baf402")Accessibility — WCAG contrast
Aa
#baf402 on white: 1.31:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#baf402 on black: 16.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green95.7%
Blue0.8%
CMYK percentages
Cyan23.8%
Magenta0.0%
Yellow99.2%
Key (black)4.3%
Color previews
#baf402 text on a black background
contrast 16.03:1
Card sample
#baf402 text on a white background
contrast 1.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #baf402;
Background color
Panel with #baf402 background
background-color: #baf402;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #baf402;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 244, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 244, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf402; background: linear-gradient(135deg, #baf402, #19F402);