Skip to content

#ffdf7c

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

RGB
255, 223, 124
HSL
45°, 100%, 74%
CMYK
0, 13, 51, 0
Luminance
0.7549

Every format

HEX#ffdf7c
RGBrgb(255, 223, 124)
HSLhsl(45, 100%, 74%)
CMYKcmyk(0%, 13%, 51%, 0%)
LABlab(89.6 -1.0 52.1)
LCHlch(89.6 52.1 91.1)
OKLCHoklch(0.910 0.124 91.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow51.4%
Key (black)0.0%

Color previews

#ffdf7c text on a black background

contrast 16.10:1

Card sample

#ffdf7c text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf7c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf7c in the Color Lab