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