Skip to content

#f9ef1c

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

RGB
249, 239, 28
HSL
57°, 95%, 54%
CMYK
0, 4, 89, 2
Luminance
0.8196

Every format

HEX#f9ef1c
RGBrgb(249, 239, 28)
HSLhsl(57, 95%, 54%)
CMYKcmyk(0%, 4%, 89%, 2%)
LABlab(92.6 -16.1 88.1)
LCHlch(92.6 89.6 100.3)
OKLCHoklch(0.930 0.195 106.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f9ef1c on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f9ef1c on black: 17.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red97.6%
Green93.7%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta4.0%
Yellow88.8%
Key (black)2.4%

Color previews

#f9ef1c text on a black background

contrast 17.39:1

Card sample

#f9ef1c text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(249, 239, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(249, 239, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f9ef1c;
background: linear-gradient(135deg, #f9ef1c, #70F91C);

Monochromatic scale

Palettes built from #f9ef1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f9ef1c in the Color Lab