Skip to content

#ffeb40

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

RGB
255, 235, 64
HSL
54°, 100%, 63%
CMYK
0, 8, 75, 0
Luminance
0.8105

Every format

HEX#ffeb40
RGBrgb(255, 235, 64)
HSLhsl(54, 100%, 63%)
CMYKcmyk(0%, 8%, 75%, 0%)
LABlab(92.2 -10.7 79.4)
LCHlch(92.2 80.1 97.6)
OKLCHoklch(0.929 0.178 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.2%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow74.9%
Key (black)0.0%

Color previews

#ffeb40 text on a black background

contrast 17.21:1

Card sample

#ffeb40 text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 235, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 235, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffeb40;
background: linear-gradient(135deg, #ffeb40, #94FF40);

Monochromatic scale

Palettes built from #ffeb40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffeb40 in the Color Lab