Skip to content

#f0ef1c

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

RGB
240, 239, 28
HSL
60°, 88%, 53%
CMYK
0, 0, 88, 6
Luminance
0.8034

Every format

HEX#f0ef1c
RGBrgb(240, 239, 28)
HSLhsl(60, 88%, 53%)
CMYKcmyk(0%, 0%, 88%, 6%)
LABlab(91.8 -19.8 87.3)
LCHlch(91.8 89.5 102.8)
OKLCHoklch(0.923 0.197 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green93.7%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow88.3%
Key (black)5.9%

Color previews

#f0ef1c text on a black background

contrast 17.07:1

Card sample

#f0ef1c text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ef1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ef1c in the Color Lab