Skip to content

#ffeb2c

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

RGB
255, 235, 44
HSL
54°, 100%, 59%
CMYK
0, 8, 83, 0
Luminance
0.8086

Every format

HEX#ffeb2c
RGBrgb(255, 235, 44)
HSLhsl(54, 100%, 59%)
CMYKcmyk(0%, 8%, 83%, 0%)
LABlab(92.1 -11.3 84.8)
LCHlch(92.1 85.6 97.6)
OKLCHoklch(0.928 0.186 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.2%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow82.7%
Key (black)0.0%

Color previews

#ffeb2c text on a black background

contrast 17.17:1

Card sample

#ffeb2c text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffeb2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffeb2c in the Color Lab