Skip to content

#faff1f

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

RGB
250, 255, 31
HSL
61°, 100%, 56%
CMYK
2, 0, 88, 0
Luminance
0.9194

Every format

HEX#faff1f
RGBrgb(250, 255, 31)
HSLhsl(61, 100%, 56%)
CMYKcmyk(2%, 0%, 88%, 0%)
LABlab(96.8 -23.3 91.0)
LCHlch(96.8 94.0 104.3)
OKLCHoklch(0.964 0.208 111.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#faff1f on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#faff1f on black: 19.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green100.0%
Blue12.2%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow87.8%
Key (black)0.0%

Color previews

#faff1f text on a black background

contrast 19.39:1

Card sample

#faff1f text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(250, 255, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 255, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #faff1f;
background: linear-gradient(135deg, #faff1f, #65FF1F);

Monochromatic scale

Palettes built from #faff1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #faff1f in the Color Lab