Skip to content

#ffdf7f

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

RGB
255, 223, 127
HSL
45°, 100%, 75%
CMYK
0, 13, 50, 0
Luminance
0.7557

Every format

HEX#ffdf7f
RGBrgb(255, 223, 127)
HSLhsl(45, 100%, 75%)
CMYKcmyk(0%, 13%, 50%, 0%)
LABlab(89.7 -0.8 50.8)
LCHlch(89.7 50.8 90.9)
OKLCHoklch(0.911 0.121 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue49.8%

CMYK percentages

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

Color previews

#ffdf7f text on a black background

contrast 16.11:1

Card sample

#ffdf7f text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf7f in the Color Lab