Skip to content

#ffec30

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

RGB
255, 236, 48
HSL
55°, 100%, 59%
CMYK
0, 8, 81, 0
Luminance
0.8146

Every format

HEX#ffec30
RGBrgb(255, 236, 48)
HSLhsl(55, 100%, 59%)
CMYKcmyk(0%, 8%, 81%, 0%)
LABlab(92.3 -11.7 84.1)
LCHlch(92.3 84.9 97.9)
OKLCHoklch(0.930 0.186 103.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue18.8%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow81.2%
Key (black)0.0%

Color previews

#ffec30 text on a black background

contrast 17.29:1

Card sample

#ffec30 text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 236, 48, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 236, 48, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffec30;
background: linear-gradient(135deg, #ffec30, #88FF30);

Monochromatic scale

Palettes built from #ffec30

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec30 in the Color Lab