Skip to content

#f8ff49

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

RGB
248, 255, 73
HSL
62°, 100%, 64%
CMYK
3, 0, 71, 0
Luminance
0.9196

Every format

HEX#f8ff49
RGBrgb(248, 255, 73)
HSLhsl(62, 100%, 64%)
CMYKcmyk(3%, 0%, 71%, 0%)
LABlab(96.8 -22.8 80.7)
LCHlch(96.8 83.8 105.8)
OKLCHoklch(0.965 0.192 111.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red97.3%
Green100.0%
Blue28.6%

CMYK percentages

Cyan2.7%
Magenta0.0%
Yellow71.4%
Key (black)0.0%

Color previews

#f8ff49 text on a black background

contrast 19.39:1

Card sample

#f8ff49 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(248, 255, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(248, 255, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f8ff49;
background: linear-gradient(135deg, #f8ff49, #7FFF49);

Monochromatic scale

Palettes built from #f8ff49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f8ff49 in the Color Lab