#afb021
a dark, vivid yellow · cool · closest name: olive
RGB
175, 176, 33
HSL
60°, 68%, 41%
CMYK
1, 0, 81, 31
Luminance
0.4027
Every format
| HEX | #afb021 |
| RGB | rgb(175, 176, 33) |
| HSL | hsl(60, 68%, 41%) |
| CMYK | cmyk(1%, 0%, 81%, 31%) |
| LAB | lab(69.7 -16.1 65.9) |
| LCH | lch(69.7 67.8 103.8) |
| OKLCH | oklch(0.733 0.152 110.1) |
Copy-ready code
/* CSS */
color: #afb021;
background-color: #afb021;
/* Tailwind (arbitrary) */
class="text-[#afb021] bg-[#afb021]"
/* SCSS */
$brand: #afb021;
/* SwiftUI */
Color(red: 0.686, green: 0.690, blue: 0.129)
/* Android */
Color.parseColor("#afb021")Accessibility — WCAG contrast
Aa
#afb021 on white: 2.32:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afb021 on black: 9.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green69.0%
Blue12.9%
CMYK percentages
Cyan0.6%
Magenta0.0%
Yellow81.3%
Key (black)31.0%
Color previews
#afb021 text on a black background
contrast 9.05:1
Card sample
#afb021 text on a white background
contrast 2.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afb021;
Background color
Panel with #afb021 background
background-color: #afb021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afb021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 176, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 176, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb021; background: linear-gradient(135deg, #afb021, #50B021);