Skip to content

#faf921

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

RGB
250, 249, 33
HSL
60°, 96%, 56%
CMYK
0, 0, 87, 2
Luminance
0.8819

Every format

HEX#faf921
RGBrgb(250, 249, 33)
HSLhsl(60, 96%, 56%)
CMYKcmyk(0%, 0%, 87%, 2%)
LABlab(95.2 -20.4 89.5)
LCHlch(95.2 91.8 102.8)
OKLCHoklch(0.952 0.202 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#faf921 on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#faf921 on black: 18.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green97.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow86.8%
Key (black)2.0%

Color previews

#faf921 text on a black background

contrast 18.64:1

Card sample

#faf921 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #faf921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #faf921 in the Color Lab