#afac46
a balanced, soft yellow · cool · closest name: olive
RGB
175, 172, 70
HSL
58°, 43%, 48%
CMYK
0, 2, 60, 31
Luminance
0.3906
Every format
| HEX | #afac46 |
| RGB | rgb(175, 172, 70) |
| HSL | hsl(58, 43%, 48%) |
| CMYK | cmyk(0%, 2%, 60%, 31%) |
| LAB | lab(68.8 -12.2 51.5) |
| LCH | lch(68.8 52.9 103.3) |
| OKLCH | oklch(0.727 0.124 107.5) |
Copy-ready code
/* CSS */
color: #afac46;
background-color: #afac46;
/* Tailwind (arbitrary) */
class="text-[#afac46] bg-[#afac46]"
/* SCSS */
$brand: #afac46;
/* SwiftUI */
Color(red: 0.686, green: 0.675, blue: 0.275)
/* Android */
Color.parseColor("#afac46")Accessibility — WCAG contrast
Aa
#afac46 on white: 2.38:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afac46 on black: 8.81:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green67.5%
Blue27.5%
CMYK percentages
Cyan0.0%
Magenta1.7%
Yellow60.0%
Key (black)31.4%
Color previews
#afac46 text on a black background
contrast 8.81:1
Card sample
#afac46 text on a white background
contrast 2.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afac46;
Background color
Panel with #afac46 background
background-color: #afac46;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afac46;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 172, 70, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 172, 70, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afac46; background: linear-gradient(135deg, #afac46, #6CAF46);