#afbc30
a balanced, vivid yellow · cool · closest name: olive
RGB
175, 188, 48
HSL
66°, 59%, 46%
CMYK
7, 0, 75, 26
Luminance
0.4529
Every format
| HEX | #afbc30 |
| RGB | rgb(175, 188, 48) |
| HSL | hsl(66, 59%, 46%) |
| CMYK | cmyk(7%, 0%, 75%, 26%) |
| LAB | lab(73.1 -21.6 64.5) |
| LCH | lch(73.1 68.0 108.5) |
| OKLCH | oklch(0.761 0.157 114.9) |
Copy-ready code
/* CSS */
color: #afbc30;
background-color: #afbc30;
/* Tailwind (arbitrary) */
class="text-[#afbc30] bg-[#afbc30]"
/* SCSS */
$brand: #afbc30;
/* SwiftUI */
Color(red: 0.686, green: 0.737, blue: 0.188)
/* Android */
Color.parseColor("#afbc30")Accessibility — WCAG contrast
Aa
#afbc30 on white: 2.09:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afbc30 on black: 10.06:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green73.7%
Blue18.8%
CMYK percentages
Cyan6.9%
Magenta0.0%
Yellow74.5%
Key (black)26.3%
Color previews
#afbc30 text on a black background
contrast 10.06:1
Card sample
#afbc30 text on a white background
contrast 2.09:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afbc30;
Background color
Panel with #afbc30 background
background-color: #afbc30;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afbc30;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 188, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 188, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbc30; background: linear-gradient(135deg, #afbc30, #52BC30);