#ffc20b
a balanced, electric yellow · cool · closest name: gold
RGB
255, 194, 11
HSL
45°, 100%, 52%
CMYK
0, 24, 96, 0
Luminance
0.5987
Every format
| HEX | #ffc20b |
| RGB | rgb(255, 194, 11) |
| HSL | hsl(45, 100%, 52%) |
| CMYK | cmyk(0%, 24%, 96%, 0%) |
| LAB | lab(81.8 8.9 82.5) |
| LCH | lch(81.8 83.0 83.8) |
| OKLCH | oklch(0.846 0.172 85.4) |
Copy-ready code
/* CSS */
color: #ffc20b;
background-color: #ffc20b;
/* Tailwind (arbitrary) */
class="text-[#ffc20b] bg-[#ffc20b]"
/* SCSS */
$brand: #ffc20b;
/* SwiftUI */
Color(red: 1.000, green: 0.761, blue: 0.043)
/* Android */
Color.parseColor("#ffc20b")Accessibility — WCAG contrast
Aa
#ffc20b on white: 1.62:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffc20b on black: 12.97:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green76.1%
Blue4.3%
CMYK percentages
Cyan0.0%
Magenta23.9%
Yellow95.7%
Key (black)0.0%
Color previews
#ffc20b text on a black background
contrast 12.97:1
Card sample
#ffc20b text on a white background
contrast 1.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffc20b;
Background color
Panel with #ffc20b background
background-color: #ffc20b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffc20b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 194, 11, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 194, 11, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffc20b; background: linear-gradient(135deg, #ffc20b, #99FF0B);