#bacf2d
a balanced, vivid yellow · cool · closest name: yellow
RGB
186, 207, 45
HSL
68°, 64%, 49%
CMYK
10, 0, 78, 19
Luminance
0.5525
Every format
| HEX | #bacf2d |
| RGB | rgb(186, 207, 45) |
| HSL | hsl(68, 64%, 49%) |
| CMYK | cmyk(10%, 0%, 78%, 19%) |
| LAB | lab(79.2 -26.3 71.3) |
| LCH | lch(79.2 76.0 110.3) |
| OKLCH | oklch(0.812 0.175 117.2) |
Copy-ready code
/* CSS */
color: #bacf2d;
background-color: #bacf2d;
/* Tailwind (arbitrary) */
class="text-[#bacf2d] bg-[#bacf2d]"
/* SCSS */
$brand: #bacf2d;
/* SwiftUI */
Color(red: 0.729, green: 0.812, blue: 0.176)
/* Android */
Color.parseColor("#bacf2d")Accessibility — WCAG contrast
Aa
#bacf2d on white: 1.74:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bacf2d on black: 12.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green81.2%
Blue17.6%
CMYK percentages
Cyan10.1%
Magenta0.0%
Yellow78.3%
Key (black)18.8%
Color previews
#bacf2d text on a black background
contrast 12.05:1
Card sample
#bacf2d text on a white background
contrast 1.74:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bacf2d;
Background color
Panel with #bacf2d background
background-color: #bacf2d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bacf2d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 207, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 207, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bacf2d; background: linear-gradient(135deg, #bacf2d, #4ECF2D);