Skip to content

#ffefac

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

RGB
255, 239, 172
HSL
48°, 100%, 84%
CMYK
0, 6, 33, 0
Luminance
0.8597

Every format

HEX#ffefac
RGBrgb(255, 239, 172)
HSLhsl(48, 100%, 84%)
CMYKcmyk(0%, 6%, 33%, 0%)
LABlab(94.3 -4.2 34.4)
LCHlch(94.3 34.7 97.0)
OKLCHoklch(0.949 0.086 96.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green93.7%
Blue67.5%

CMYK percentages

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

Color previews

#ffefac text on a black background

contrast 18.19:1

Card sample

#ffefac text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffefac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffefac in the Color Lab