#baf021
a balanced, electric green · cool · closest name: yellow
RGB
186, 240, 33
HSL
76°, 87%, 54%
CMYK
23, 0, 86, 6
Luminance
0.7287
Every format
| HEX | #baf021 |
| RGB | rgb(186, 240, 33) |
| HSL | hsl(76, 87%, 54%) |
| CMYK | cmyk(23%, 0%, 86%, 6%) |
| LAB | lab(88.4 -41.8 82.0) |
| LCH | lch(88.4 92.1 117.0) |
| OKLCH | oklch(0.886 0.215 124.8) |
Copy-ready code
/* CSS */
color: #baf021;
background-color: #baf021;
/* Tailwind (arbitrary) */
class="text-[#baf021] bg-[#baf021]"
/* SCSS */
$brand: #baf021;
/* SwiftUI */
Color(red: 0.729, green: 0.941, blue: 0.129)
/* Android */
Color.parseColor("#baf021")Accessibility — WCAG contrast
Aa
#baf021 on white: 1.35:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#baf021 on black: 15.57:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green94.1%
Blue12.9%
CMYK percentages
Cyan22.5%
Magenta0.0%
Yellow86.3%
Key (black)5.9%
Color previews
#baf021 text on a black background
contrast 15.57:1
Card sample
#baf021 text on a white background
contrast 1.35:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #baf021;
Background color
Panel with #baf021 background
background-color: #baf021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #baf021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 240, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 240, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf021; background: linear-gradient(135deg, #baf021, #30F021);