Skip to content

#ffef8c

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

RGB
255, 239, 140
HSL
52°, 100%, 78%
CMYK
0, 6, 45, 0
Luminance
0.8489

Every format

HEX#ffef8c
RGBrgb(255, 239, 140)
HSLhsl(52, 100%, 78%)
CMYKcmyk(0%, 6%, 45%, 0%)
LABlab(93.8 -7.6 49.6)
LCHlch(93.8 50.2 98.8)
OKLCHoklch(0.944 0.121 100.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffef8c on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#ffef8c on black: 17.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green93.7%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow45.1%
Key (black)0.0%

Color previews

#ffef8c text on a black background

contrast 17.98:1

Card sample

#ffef8c text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffef8c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffef8c in the Color Lab