#fafc21
a balanced, electric yellow · cool · closest name: yellow
RGB
250, 252, 33
HSL
61°, 97%, 56%
CMYK
1, 0, 87, 1
Luminance
0.9005
Every format
| HEX | #fafc21 |
| RGB | rgb(250, 252, 33) |
| HSL | hsl(61, 97%, 56%) |
| CMYK | cmyk(1%, 0%, 87%, 1%) |
| LAB | lab(96.0 -21.8 90.1) |
| LCH | lch(96.0 92.7 103.6) |
| OKLCH | oklch(0.958 0.205 110.3) |
Copy-ready code
/* CSS */
color: #fafc21;
background-color: #fafc21;
/* Tailwind (arbitrary) */
class="text-[#fafc21] bg-[#fafc21]"
/* SCSS */
$brand: #fafc21;
/* SwiftUI */
Color(red: 0.980, green: 0.988, blue: 0.129)
/* Android */
Color.parseColor("#fafc21")Accessibility — WCAG contrast
Aa
#fafc21 on white: 1.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fafc21 on black: 19.01:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.0%
Green98.8%
Blue12.9%
CMYK percentages
Cyan0.8%
Magenta0.0%
Yellow86.9%
Key (black)1.2%
Color previews
#fafc21 text on a black background
contrast 19.01:1
Card sample
#fafc21 text on a white background
contrast 1.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fafc21;
Background color
Panel with #fafc21 background
background-color: #fafc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fafc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(250, 252, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 252, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fafc21; background: linear-gradient(135deg, #fafc21, #68FC21);