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