#afbc21
a dark, vivid yellow · cool · closest name: olive
RGB
175, 188, 33
HSL
65°, 70%, 43%
CMYK
7, 0, 82, 26
Luminance
0.4519
Every format
| HEX | #afbc21 |
| RGB | rgb(175, 188, 33) |
| HSL | hsl(65, 70%, 43%) |
| CMYK | cmyk(7%, 0%, 82%, 26%) |
| LAB | lab(73.0 -22.1 68.8) |
| LCH | lch(73.0 72.3 107.8) |
| OKLCH | oklch(0.760 0.164 114.8) |
Copy-ready code
/* CSS */
color: #afbc21;
background-color: #afbc21;
/* Tailwind (arbitrary) */
class="text-[#afbc21] bg-[#afbc21]"
/* SCSS */
$brand: #afbc21;
/* SwiftUI */
Color(red: 0.686, green: 0.737, blue: 0.129)
/* Android */
Color.parseColor("#afbc21")Accessibility — WCAG contrast
Aa
#afbc21 on white: 2.09:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afbc21 on black: 10.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green73.7%
Blue12.9%
CMYK percentages
Cyan6.9%
Magenta0.0%
Yellow82.4%
Key (black)26.3%
Color previews
#afbc21 text on a black background
contrast 10.04:1
Card sample
#afbc21 text on a white background
contrast 2.09:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afbc21;
Background color
Panel with #afbc21 background
background-color: #afbc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afbc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 188, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 188, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbc21; background: linear-gradient(135deg, #afbc21, #48BC21);