#afbc0b
a dark, electric yellow · cool · closest name: olive
RGB
175, 188, 11
HSL
64°, 89%, 39%
CMYK
7, 0, 94, 26
Luminance
0.4510
Every format
| HEX | #afbc0b |
| RGB | rgb(175, 188, 11) |
| HSL | hsl(64, 89%, 39%) |
| CMYK | cmyk(7%, 0%, 94%, 26%) |
| LAB | lab(73.0 -22.6 72.7) |
| LCH | lch(73.0 76.2 107.3) |
| OKLCH | oklch(0.759 0.170 114.7) |
Copy-ready code
/* CSS */
color: #afbc0b;
background-color: #afbc0b;
/* Tailwind (arbitrary) */
class="text-[#afbc0b] bg-[#afbc0b]"
/* SCSS */
$brand: #afbc0b;
/* SwiftUI */
Color(red: 0.686, green: 0.737, blue: 0.043)
/* Android */
Color.parseColor("#afbc0b")Accessibility — WCAG contrast
Aa
#afbc0b on white: 2.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afbc0b on black: 10.02:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green73.7%
Blue4.3%
CMYK percentages
Cyan6.9%
Magenta0.0%
Yellow94.1%
Key (black)26.3%
Color previews
#afbc0b text on a black background
contrast 10.02:1
Card sample
#afbc0b text on a white background
contrast 2.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afbc0b;
Background color
Panel with #afbc0b background
background-color: #afbc0b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afbc0b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 188, 11, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 188, 11, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afbc0b; background: linear-gradient(135deg, #afbc0b, #39BC0B);