Skip to content

#ffefab

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

RGB
255, 239, 171
HSL
49°, 100%, 84%
CMYK
0, 6, 33, 0
Luminance
0.8593

Every format

HEX#ffefab
RGBrgb(255, 239, 171)
HSLhsl(49, 100%, 84%)
CMYKcmyk(0%, 6%, 33%, 0%)
LABlab(94.3 -4.3 34.9)
LCHlch(94.3 35.2 97.1)
OKLCHoklch(0.949 0.087 96.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffefab on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#ffefab on black: 18.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green93.7%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow32.9%
Key (black)0.0%

Color previews

#ffefab text on a black background

contrast 18.19:1

Card sample

#ffefab text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffefab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffefab in the Color Lab