Skip to content

#fef600

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

RGB
254, 246, 0
HSL
58°, 100%, 50%
CMYK
0, 3, 100, 0
Luminance
0.8698

Every format

HEX#fef600
RGBrgb(254, 246, 0)
HSLhsl(58, 100%, 50%)
CMYKcmyk(0%, 3%, 100%, 0%)
LABlab(94.7 -17.7 92.7)
LCHlch(94.7 94.4 100.8)
OKLCHoklch(0.949 0.204 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef600 on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#fef600 on black: 18.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green96.5%
Blue0.0%

CMYK percentages

Cyan0.0%
Magenta3.1%
Yellow100.0%
Key (black)0.4%

Color previews

#fef600 text on a black background

contrast 18.40:1

Card sample

#fef600 text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(254, 246, 0, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 246, 0, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fef600;
background: linear-gradient(135deg, #fef600, #5DFE00);

Monochromatic scale

Palettes built from #fef600

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef600 in the Color Lab