#afab2d
a dark, vivid yellow · cool · closest name: olive
RGB
175, 171, 45
HSL
58°, 59%, 43%
CMYK
0, 2, 74, 31
Luminance
0.3843
Every format
| HEX | #afab2d |
| RGB | rgb(175, 171, 45) |
| HSL | hsl(58, 59%, 43%) |
| CMYK | cmyk(0%, 2%, 74%, 31%) |
| LAB | lab(68.3 -13.1 61.0) |
| LCH | lch(68.3 62.4 102.1) |
| OKLCH | oklch(0.723 0.141 107.6) |
Copy-ready code
/* CSS */
color: #afab2d;
background-color: #afab2d;
/* Tailwind (arbitrary) */
class="text-[#afab2d] bg-[#afab2d]"
/* SCSS */
$brand: #afab2d;
/* SwiftUI */
Color(red: 0.686, green: 0.671, blue: 0.176)
/* Android */
Color.parseColor("#afab2d")Accessibility — WCAG contrast
Aa
#afab2d on white: 2.42:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afab2d on black: 8.69:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green67.1%
Blue17.6%
CMYK percentages
Cyan0.0%
Magenta2.3%
Yellow74.3%
Key (black)31.4%
Color previews
#afab2d text on a black background
contrast 8.69:1
Card sample
#afab2d text on a white background
contrast 2.42:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afab2d;
Background color
Panel with #afab2d background
background-color: #afab2d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afab2d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 171, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 171, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afab2d; background: linear-gradient(135deg, #afab2d, #5CAF2D);