Skip to content

#ffeb9a

a light, electric yellow · cool · closest name: khaki

RGB
255, 235, 154
HSL
48°, 100%, 80%
CMYK
0, 8, 40, 0
Luminance
0.8301

Every format

HEX#ffeb9a
RGBrgb(255, 235, 154)
HSLhsl(48, 100%, 80%)
CMYKcmyk(0%, 8%, 40%, 0%)
LABlab(93.0 -4.2 41.8)
LCHlch(93.0 42.0 95.8)
OKLCHoklch(0.938 0.103 95.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffeb9a on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#ffeb9a on black: 17.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.2%
Blue60.4%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow39.6%
Key (black)0.0%

Color previews

#ffeb9a text on a black background

contrast 17.60:1

Card sample

#ffeb9a text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffeb9a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffeb9a in the Color Lab