#fab921
a balanced, electric yellow · warm · closest name: orange
RGB
250, 185, 33
HSL
42°, 96%, 56%
CMYK
0, 26, 87, 2
Luminance
0.5513
Every format
| HEX | #fab921 |
| RGB | rgb(250, 185, 33) |
| HSL | hsl(42, 96%, 56%) |
| CMYK | cmyk(0%, 26%, 87%, 2%) |
| LAB | lab(79.1 11.8 76.6) |
| LCH | lch(79.1 77.5 81.3) |
| OKLCH | oklch(0.824 0.164 81.8) |
Copy-ready code
/* CSS */
color: #fab921;
background-color: #fab921;
/* Tailwind (arbitrary) */
class="text-[#fab921] bg-[#fab921]"
/* SCSS */
$brand: #fab921;
/* SwiftUI */
Color(red: 0.980, green: 0.725, blue: 0.129)
/* Android */
Color.parseColor("#fab921")Accessibility — WCAG contrast
Aa
#fab921 on white: 1.75:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fab921 on black: 12.03:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.0%
Green72.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta26.0%
Yellow86.8%
Key (black)2.0%
Color previews
#fab921 text on a black background
contrast 12.03:1
Card sample
#fab921 text on a white background
contrast 1.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fab921;
Background color
Panel with #fab921 background
background-color: #fab921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fab921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(250, 185, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 185, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fab921; background: linear-gradient(135deg, #fab921, #AAFA21);