#afab56
a balanced, soft yellow · cool · closest name: olive
RGB
175, 171, 86
HSL
57°, 36%, 51%
CMYK
0, 2, 51, 31
Luminance
0.3891
Every format
| HEX | #afab56 |
| RGB | rgb(175, 171, 86) |
| HSL | hsl(57, 36%, 51%) |
| CMYK | cmyk(0%, 2%, 51%, 31%) |
| LAB | lab(68.7 -10.4 43.8) |
| LCH | lch(68.7 45.0 103.3) |
| OKLCH | oklch(0.727 0.108 106.4) |
Copy-ready code
/* CSS */
color: #afab56;
background-color: #afab56;
/* Tailwind (arbitrary) */
class="text-[#afab56] bg-[#afab56]"
/* SCSS */
$brand: #afab56;
/* SwiftUI */
Color(red: 0.686, green: 0.671, blue: 0.337)
/* Android */
Color.parseColor("#afab56")Accessibility — WCAG contrast
Aa
#afab56 on white: 2.39:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afab56 on black: 8.78:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green67.1%
Blue33.7%
CMYK percentages
Cyan0.0%
Magenta2.3%
Yellow50.9%
Key (black)31.4%
Color previews
#afab56 text on a black background
contrast 8.78:1
Card sample
#afab56 text on a white background
contrast 2.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afab56;
Background color
Panel with #afab56 background
background-color: #afab56;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afab56;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 171, 86, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 171, 86, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afab56; background: linear-gradient(135deg, #afab56, #78AF56);