Skip to content

#ffe97f

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

RGB
255, 233, 127
HSL
50°, 100%, 75%
CMYK
0, 9, 50, 0
Luminance
0.8107

Every format

HEX#ffe97f
RGBrgb(255, 233, 127)
HSLhsl(50, 100%, 75%)
CMYKcmyk(0%, 9%, 50%, 0%)
LABlab(92.2 -5.8 53.8)
LCHlch(92.2 54.1 96.2)
OKLCHoklch(0.930 0.129 97.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffe97f on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#ffe97f on black: 17.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green91.4%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta8.6%
Yellow50.2%
Key (black)0.0%

Color previews

#ffe97f text on a black background

contrast 17.21:1

Card sample

#ffe97f text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffe97f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffe97f in the Color Lab