Skip to content

#f0ef1d

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

RGB
240, 239, 29
HSL
60°, 88%, 53%
CMYK
0, 0, 88, 6
Luminance
0.8035

Every format

HEX#f0ef1d
RGBrgb(240, 239, 29)
HSLhsl(60, 88%, 53%)
CMYKcmyk(0%, 0%, 88%, 6%)
LABlab(91.8 -19.8 87.1)
LCHlch(91.8 89.3 102.8)
OKLCHoklch(0.923 0.196 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ef1d on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#f0ef1d on black: 17.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green93.7%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow87.9%
Key (black)5.9%

Color previews

#f0ef1d text on a black background

contrast 17.07:1

Card sample

#f0ef1d text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 239, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 239, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0ef1d;
background: linear-gradient(135deg, #f0ef1d, #64F01D);

Monochromatic scale

Palettes built from #f0ef1d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ef1d in the Color Lab