Skip to content

#ffeb9e

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

RGB
255, 235, 158
HSL
48°, 100%, 81%
CMYK
0, 8, 38, 0
Luminance
0.8315

Every format

HEX#ffeb9e
RGBrgb(255, 235, 158)
HSLhsl(48, 100%, 81%)
CMYKcmyk(0%, 8%, 38%, 0%)
LABlab(93.1 -3.8 39.8)
LCHlch(93.1 40.0 95.5)
OKLCHoklch(0.939 0.099 95.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.2%
Blue62.0%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow38.0%
Key (black)0.0%

Color previews

#ffeb9e text on a black background

contrast 17.63:1

Card sample

#ffeb9e text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffeb9e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffeb9e in the Color Lab