Skip to content

#f7ef1c

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

RGB
247, 239, 28
HSL
58°, 93%, 54%
CMYK
0, 3, 89, 3
Luminance
0.8159

Every format

HEX#f7ef1c
RGBrgb(247, 239, 28)
HSLhsl(58, 93%, 54%)
CMYKcmyk(0%, 3%, 89%, 3%)
LABlab(92.4 -16.9 87.9)
LCHlch(92.4 89.5 100.9)
OKLCHoklch(0.929 0.195 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red96.9%
Green93.7%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta3.2%
Yellow88.7%
Key (black)3.1%

Color previews

#f7ef1c text on a black background

contrast 17.32:1

Card sample

#f7ef1c text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f7ef1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f7ef1c in the Color Lab