#afb821
a dark, vivid yellow · cool · closest name: olive
RGB
175, 184, 33
HSL
64°, 70%, 43%
CMYK
5, 0, 82, 28
Luminance
0.4350
Every format
| HEX | #afb821 |
| RGB | rgb(175, 184, 33) |
| HSL | hsl(64, 70%, 43%) |
| CMYK | cmyk(5%, 0%, 82%, 28%) |
| LAB | lab(71.9 -20.2 67.8) |
| LCH | lch(71.9 70.8 106.6) |
| OKLCH | oklch(0.751 0.160 113.3) |
Copy-ready code
/* CSS */
color: #afb821;
background-color: #afb821;
/* Tailwind (arbitrary) */
class="text-[#afb821] bg-[#afb821]"
/* SCSS */
$brand: #afb821;
/* SwiftUI */
Color(red: 0.686, green: 0.722, blue: 0.129)
/* Android */
Color.parseColor("#afb821")Accessibility — WCAG contrast
Aa
#afb821 on white: 2.16:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afb821 on black: 9.70:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green72.2%
Blue12.9%
CMYK percentages
Cyan4.9%
Magenta0.0%
Yellow82.1%
Key (black)27.8%
Color previews
#afb821 text on a black background
contrast 9.70:1
Card sample
#afb821 text on a white background
contrast 2.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afb821;
Background color
Panel with #afb821 background
background-color: #afb821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afb821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 184, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 184, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb821; background: linear-gradient(135deg, #afb821, #4AB821);