Skip to content

#fef030

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

RGB
254, 240, 48
HSL
56°, 99%, 59%
CMYK
0, 6, 81, 0
Luminance
0.8360

Every format

HEX#fef030
RGBrgb(254, 240, 48)
HSLhsl(56, 99%, 59%)
CMYKcmyk(0%, 6%, 81%, 0%)
LABlab(93.3 -14.0 84.9)
LCHlch(93.3 86.0 99.4)
OKLCHoklch(0.937 0.189 105.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef030 on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#fef030 on black: 17.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green94.1%
Blue18.8%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow81.1%
Key (black)0.4%

Color previews

#fef030 text on a black background

contrast 17.72:1

Card sample

#fef030 text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(254, 240, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 240, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fef030;
background: linear-gradient(135deg, #fef030, #83FE30);

Monochromatic scale

Palettes built from #fef030

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef030 in the Color Lab