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