Skip to content

#fafd2f

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

RGB
250, 253, 47
HSL
61°, 98%, 59%
CMYK
1, 0, 81, 1
Luminance
0.9078

Every format

HEX#fafd2f
RGBrgb(250, 253, 47)
HSLhsl(61, 98%, 59%)
CMYKcmyk(1%, 0%, 81%, 1%)
LABlab(96.3 -22.0 87.5)
LCHlch(96.3 90.3 104.1)
OKLCHoklch(0.961 0.201 110.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.0%
Green99.2%
Blue18.4%

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow81.4%
Key (black)0.8%

Color previews

#fafd2f text on a black background

contrast 19.16:1

Card sample

#fafd2f text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fafd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fafd2f in the Color Lab