Skip to content

#ffeb2b

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

RGB
255, 235, 43
HSL
54°, 100%, 58%
CMYK
0, 8, 83, 0
Luminance
0.8085

Every format

HEX#ffeb2b
RGBrgb(255, 235, 43)
HSLhsl(54, 100%, 58%)
CMYKcmyk(0%, 8%, 83%, 0%)
LABlab(92.1 -11.3 85.1)
LCHlch(92.1 85.8 97.6)
OKLCHoklch(0.928 0.187 102.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.2%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow83.1%
Key (black)0.0%

Color previews

#ffeb2b text on a black background

contrast 17.17:1

Card sample

#ffeb2b text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffeb2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffeb2b in the Color Lab