Skip to content

#ffec0c

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

RGB
255, 236, 12
HSL
55°, 100%, 52%
CMYK
0, 8, 95, 0
Luminance
0.8128

Every format

HEX#ffec0c
RGBrgb(255, 236, 12)
HSLhsl(55, 100%, 52%)
CMYKcmyk(0%, 8%, 95%, 0%)
LABlab(92.3 -12.3 90.0)
LCHlch(92.3 90.9 97.8)
OKLCHoklch(0.929 0.195 103.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow95.3%
Key (black)0.0%

Color previews

#ffec0c text on a black background

contrast 17.26:1

Card sample

#ffec0c text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec0c in the Color Lab