Skip to content

#ffec0d

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

RGB
255, 236, 13
HSL
55°, 100%, 53%
CMYK
0, 8, 95, 0
Luminance
0.8128

Every format

HEX#ffec0d
RGBrgb(255, 236, 13)
HSLhsl(55, 100%, 53%)
CMYKcmyk(0%, 8%, 95%, 0%)
LABlab(92.3 -12.3 89.9)
LCHlch(92.3 90.8 97.8)
OKLCHoklch(0.929 0.194 103.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue5.1%

CMYK percentages

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

Color previews

#ffec0d text on a black background

contrast 17.26:1

Card sample

#ffec0d text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec0d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec0d in the Color Lab