#afb28b
a balanced, soft yellow · cool · closest name: tan
RGB
175, 178, 139
HSL
65°, 20%, 62%
CMYK
2, 0, 22, 30
Luminance
0.4282
Every format
| HEX | #afb28b |
| RGB | rgb(175, 178, 139) |
| HSL | hsl(65, 20%, 62%) |
| CMYK | cmyk(2%, 0%, 22%, 30%) |
| LAB | lab(71.4 -7.7 19.6) |
| LCH | lch(71.4 21.1 111.4) |
| OKLCH | oklch(0.751 0.054 111.3) |
Copy-ready code
/* CSS */
color: #afb28b;
background-color: #afb28b;
/* Tailwind (arbitrary) */
class="text-[#afb28b] bg-[#afb28b]"
/* SCSS */
$brand: #afb28b;
/* SwiftUI */
Color(red: 0.686, green: 0.698, blue: 0.545)
/* Android */
Color.parseColor("#afb28b")Accessibility — WCAG contrast
Aa
#afb28b on white: 2.20:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afb28b on black: 9.56:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green69.8%
Blue54.5%
CMYK percentages
Cyan1.7%
Magenta0.0%
Yellow21.9%
Key (black)30.2%
Color previews
#afb28b text on a black background
contrast 9.56:1
Card sample
#afb28b text on a white background
contrast 2.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afb28b;
Background color
Panel with #afb28b background
background-color: #afb28b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afb28b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 178, 139, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 178, 139, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afb28b; background: linear-gradient(135deg, #afb28b, #95B28B);