Skip to content

#fafb21

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

RGB
250, 251, 33
HSL
60°, 97%, 56%
CMYK
0, 0, 87, 2
Luminance
0.8943

Every format

HEX#fafb21
RGBrgb(250, 251, 33)
HSLhsl(60, 97%, 56%)
CMYKcmyk(0%, 0%, 87%, 2%)
LABlab(95.8 -21.3 89.9)
LCHlch(95.8 92.4 103.4)
OKLCHoklch(0.956 0.204 110.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fafb21 on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#fafb21 on black: 18.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green98.4%
Blue12.9%

CMYK percentages

Cyan0.4%
Magenta0.0%
Yellow86.9%
Key (black)1.6%

Color previews

#fafb21 text on a black background

contrast 18.89:1

Card sample

#fafb21 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fafb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fafb21 in the Color Lab