Skip to content

#ffdf8f

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

RGB
255, 223, 143
HSL
43°, 100%, 78%
CMYK
0, 13, 44, 0
Luminance
0.7602

Every format

HEX#ffdf8f
RGBrgb(255, 223, 143)
HSLhsl(43, 100%, 78%)
CMYKcmyk(0%, 13%, 44%, 0%)
LABlab(89.9 0.7 43.2)
LCHlch(89.9 43.2 89.1)
OKLCHoklch(0.913 0.105 88.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow43.9%
Key (black)0.0%

Color previews

#ffdf8f text on a black background

contrast 16.20:1

Card sample

#ffdf8f text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf8f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf8f in the Color Lab