#afab28
a dark, vivid yellow · cool · closest name: olive
RGB
175, 171, 40
HSL
58°, 63%, 42%
CMYK
0, 2, 77, 31
Luminance
0.3839
Every format
| HEX | #afab28 |
| RGB | rgb(175, 171, 40) |
| HSL | hsl(58, 63%, 42%) |
| CMYK | cmyk(0%, 2%, 77%, 31%) |
| LAB | lab(68.3 -13.3 62.7) |
| LCH | lch(68.3 64.1 102.0) |
| OKLCH | oklch(0.722 0.143 107.7) |
Copy-ready code
/* CSS */
color: #afab28;
background-color: #afab28;
/* Tailwind (arbitrary) */
class="text-[#afab28] bg-[#afab28]"
/* SCSS */
$brand: #afab28;
/* SwiftUI */
Color(red: 0.686, green: 0.671, blue: 0.157)
/* Android */
Color.parseColor("#afab28")Accessibility — WCAG contrast
Aa
#afab28 on white: 2.42:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afab28 on black: 8.68:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green67.1%
Blue15.7%
CMYK percentages
Cyan0.0%
Magenta2.3%
Yellow77.1%
Key (black)31.4%
Color previews
#afab28 text on a black background
contrast 8.68:1
Card sample
#afab28 text on a white background
contrast 2.42:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afab28;
Background color
Panel with #afab28 background
background-color: #afab28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afab28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 171, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 171, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afab28; background: linear-gradient(135deg, #afab28, #59AF28);