Skip to content

#ffec0f

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

RGB
255, 236, 15
HSL
55°, 100%, 53%
CMYK
0, 8, 94, 0
Luminance
0.8129

Every format

HEX#ffec0f
RGBrgb(255, 236, 15)
HSLhsl(55, 100%, 53%)
CMYKcmyk(0%, 8%, 94%, 0%)
LABlab(92.3 -12.3 89.8)
LCHlch(92.3 90.6 97.8)
OKLCHoklch(0.929 0.194 103.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffec0f on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#ffec0f on black: 17.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.5%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow94.1%
Key (black)0.0%

Color previews

#ffec0f text on a black background

contrast 17.26:1

Card sample

#ffec0f text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec0f in the Color Lab