#fafa21
a balanced, electric yellow · cool · closest name: yellow
RGB
250, 250, 33
HSL
60°, 96%, 56%
CMYK
0, 0, 87, 2
Luminance
0.8881
Every format
| HEX | #fafa21 |
| RGB | rgb(250, 250, 33) |
| HSL | hsl(60, 96%, 56%) |
| CMYK | cmyk(0%, 0%, 87%, 2%) |
| LAB | lab(95.5 -20.9 89.7) |
| LCH | lch(95.5 92.1 103.1) |
| OKLCH | oklch(0.954 0.203 109.7) |
Copy-ready code
/* CSS */
color: #fafa21;
background-color: #fafa21;
/* Tailwind (arbitrary) */
class="text-[#fafa21] bg-[#fafa21]"
/* SCSS */
$brand: #fafa21;
/* SwiftUI */
Color(red: 0.980, green: 0.980, blue: 0.129)
/* Android */
Color.parseColor("#fafa21")Accessibility — WCAG contrast
Aa
#fafa21 on white: 1.12:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fafa21 on black: 18.76:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.0%
Green98.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow86.8%
Key (black)2.0%
Color previews
#fafa21 text on a black background
contrast 18.76:1
Card sample
#fafa21 text on a white background
contrast 1.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fafa21;
Background color
Panel with #fafa21 background
background-color: #fafa21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fafa21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(250, 250, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 250, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fafa21; background: linear-gradient(135deg, #fafa21, #69FA21);