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