Skip to content

#ffeb3c

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

RGB
255, 235, 60
HSL
54°, 100%, 62%
CMYK
0, 8, 77, 0
Luminance
0.8100

Every format

HEX#ffeb3c
RGBrgb(255, 235, 60)
HSLhsl(54, 100%, 62%)
CMYKcmyk(0%, 8%, 77%, 0%)
LABlab(92.1 -10.8 80.6)
LCHlch(92.1 81.3 97.6)
OKLCHoklch(0.928 0.180 102.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.2%
Blue23.5%

CMYK percentages

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

Color previews

#ffeb3c text on a black background

contrast 17.20:1

Card sample

#ffeb3c text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffeb3c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffeb3c in the Color Lab