Skip to content

#ffdf7e

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

RGB
255, 223, 126
HSL
45°, 100%, 75%
CMYK
0, 13, 51, 0
Luminance
0.7554

Every format

HEX#ffdf7e
RGBrgb(255, 223, 126)
HSLhsl(45, 100%, 75%)
CMYKcmyk(0%, 13%, 51%, 0%)
LABlab(89.7 -0.9 51.2)
LCHlch(89.7 51.2 91.0)
OKLCHoklch(0.910 0.122 91.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffdf7e on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#ffdf7e on black: 16.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green87.5%
Blue49.4%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow50.6%
Key (black)0.0%

Color previews

#ffdf7e text on a black background

contrast 16.11:1

Card sample

#ffdf7e text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf7e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf7e in the Color Lab