#faff51
a light, electric yellow · cool · closest name: yellow
RGB
250, 255, 81
HSL
62°, 100%, 66%
CMYK
2, 0, 68, 0
Luminance
0.9244
Every format
| HEX | #faff51 |
| RGB | rgb(250, 255, 81) |
| HSL | hsl(62, 100%, 66%) |
| CMYK | cmyk(2%, 0%, 68%, 0%) |
| LAB | lab(97.0 -21.6 78.2) |
| LCH | lch(97.0 81.1 105.5) |
| OKLCH | oklch(0.967 0.187 111.1) |
Copy-ready code
/* CSS */
color: #faff51;
background-color: #faff51;
/* Tailwind (arbitrary) */
class="text-[#faff51] bg-[#faff51]"
/* SCSS */
$brand: #faff51;
/* SwiftUI */
Color(red: 0.980, green: 1.000, blue: 0.318)
/* Android */
Color.parseColor("#faff51")Accessibility — WCAG contrast
Aa
#faff51 on white: 1.08:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#faff51 on black: 19.49:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.0%
Green100.0%
Blue31.8%
CMYK percentages
Cyan2.0%
Magenta0.0%
Yellow68.2%
Key (black)0.0%
Color previews
#faff51 text on a black background
contrast 19.49:1
Card sample
#faff51 text on a white background
contrast 1.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #faff51;
Background color
Panel with #faff51 background
background-color: #faff51;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #faff51;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(250, 255, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 255, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #faff51; background: linear-gradient(135deg, #faff51, #86FF51);