#afba5d
a balanced, soft yellow · cool · closest name: khaki
RGB
175, 186, 93
HSL
67°, 40%, 55%
CMYK
6, 0, 50, 27
Luminance
0.4502
Every format
| HEX | #afba5d |
| RGB | rgb(175, 186, 93) |
| HSL | hsl(67, 40%, 55%) |
| CMYK | cmyk(6%, 0%, 50%, 27%) |
| LAB | lab(72.9 -17.4 45.4) |
| LCH | lch(72.9 48.6 111.0) |
| OKLCH | oklch(0.760 0.119 114.8) |
Copy-ready code
/* CSS */
color: #afba5d;
background-color: #afba5d;
/* Tailwind (arbitrary) */
class="text-[#afba5d] bg-[#afba5d]"
/* SCSS */
$brand: #afba5d;
/* SwiftUI */
Color(red: 0.686, green: 0.729, blue: 0.365)
/* Android */
Color.parseColor("#afba5d")Accessibility — WCAG contrast
Aa
#afba5d on white: 2.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afba5d on black: 10.00:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green72.9%
Blue36.5%
CMYK percentages
Cyan5.9%
Magenta0.0%
Yellow50.0%
Key (black)27.1%
Color previews
#afba5d text on a black background
contrast 10.00:1
Card sample
#afba5d text on a white background
contrast 2.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afba5d;
Background color
Panel with #afba5d background
background-color: #afba5d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afba5d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 186, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 186, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afba5d; background: linear-gradient(135deg, #afba5d, #71BA5D);