#baf708
a balanced, electric green · cool · closest name: yellow
RGB
186, 247, 8
HSL
75°, 94%, 50%
CMYK
25, 0, 97, 3
Luminance
0.7698
Every format
| HEX | #baf708 |
| RGB | rgb(186, 247, 8) |
| HSL | hsl(75, 94%, 50%) |
| CMYK | cmyk(25%, 0%, 97%, 3%) |
| LAB | lab(90.3 -45.3 86.7) |
| LCH | lch(90.3 97.8 117.6) |
| OKLCH | oklch(0.901 0.228 125.7) |
Copy-ready code
/* CSS */
color: #baf708;
background-color: #baf708;
/* Tailwind (arbitrary) */
class="text-[#baf708] bg-[#baf708]"
/* SCSS */
$brand: #baf708;
/* SwiftUI */
Color(red: 0.729, green: 0.969, blue: 0.031)
/* Android */
Color.parseColor("#baf708")Accessibility — WCAG contrast
Aa
#baf708 on white: 1.28:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#baf708 on black: 16.40:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green96.9%
Blue3.1%
CMYK percentages
Cyan24.7%
Magenta0.0%
Yellow96.8%
Key (black)3.1%
Color previews
#baf708 text on a black background
contrast 16.40:1
Card sample
#baf708 text on a white background
contrast 1.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #baf708;
Background color
Panel with #baf708 background
background-color: #baf708;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #baf708;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 247, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 247, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf708; background: linear-gradient(135deg, #baf708, #1BF708);