Skip to content

#ffef5c

a light, electric yellow · cool · closest name: gold

RGB
255, 239, 92
HSL
54°, 100%, 68%
CMYK
0, 6, 64, 0
Luminance
0.8377

Every format

HEX#ffef5c
RGBrgb(255, 239, 92)
HSLhsl(54, 100%, 68%)
CMYKcmyk(0%, 6%, 64%, 0%)
LABlab(93.3 -11.3 70.5)
LCHlch(93.3 71.4 99.1)
OKLCHoklch(0.939 0.164 103.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffef5c on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#ffef5c on black: 17.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green93.7%
Blue36.1%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow63.9%
Key (black)0.0%

Color previews

#ffef5c text on a black background

contrast 17.75:1

Card sample

#ffef5c text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 239, 92, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 239, 92, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffef5c;
background: linear-gradient(135deg, #ffef5c, #A2FF5C);

Monochromatic scale

Palettes built from #ffef5c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffef5c in the Color Lab