Skip to content

#ffec3d

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

RGB
255, 236, 61
HSL
54°, 100%, 62%
CMYK
0, 8, 76, 0
Luminance
0.8159

Every format

HEX#ffec3d
RGBrgb(255, 236, 61)
HSLhsl(54, 100%, 62%)
CMYKcmyk(0%, 8%, 76%, 0%)
LABlab(92.4 -11.3 80.5)
LCHlch(92.4 81.3 98.0)
OKLCHoklch(0.931 0.180 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.5%
Blue23.9%

CMYK percentages

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

Color previews

#ffec3d text on a black background

contrast 17.32:1

Card sample

#ffec3d text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffec3d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffec3d in the Color Lab