Skip to content

#fafd21

a balanced, electric yellow · cool · closest name: yellow

RGB
250, 253, 33
HSL
61°, 98%, 56%
CMYK
1, 0, 87, 1
Luminance
0.9068

Every format

HEX#fafd21
RGBrgb(250, 253, 33)
HSLhsl(61, 98%, 56%)
CMYKcmyk(1%, 0%, 87%, 1%)
LABlab(96.3 -22.3 90.3)
LCHlch(96.3 93.0 103.9)
OKLCHoklch(0.960 0.205 110.6)

Copy-ready code

/* CSS */
color: #fafd21;
background-color: #fafd21;
/* Tailwind (arbitrary) */
class="text-[#fafd21] bg-[#fafd21]"
/* SCSS */
$brand: #fafd21;
/* SwiftUI */
Color(red: 0.980, green: 0.992, blue: 0.129)
/* Android */
Color.parseColor("#fafd21")

Accessibility — WCAG contrast

Aa
#fafd21 on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fafd21 on black: 19.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green99.2%
Blue12.9%

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow87.0%
Key (black)0.8%

Color previews

#fafd21 text on a black background

contrast 19.14:1

Card sample

#fafd21 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #fafd21;
Background color
Panel with #fafd21 background
background-color: #fafd21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #fafd21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(250, 253, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 253, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fafd21;
background: linear-gradient(135deg, #fafd21, #67FD21);

Monochromatic scale

Palettes built from #fafd21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fafd21 in the Color Lab