Skip to content

#f7fba4

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

RGB
247, 251, 164
HSL
63°, 92%, 81%
CMYK
2, 0, 35, 2
Luminance
0.9145

Every format

HEX#f7fba4
RGBrgb(247, 251, 164)
HSLhsl(63, 92%, 81%)
CMYKcmyk(2%, 0%, 35%, 2%)
LABlab(96.6 -14.1 41.3)
LCHlch(96.6 43.6 108.9)
OKLCHoklch(0.966 0.109 110.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f7fba4 on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#f7fba4 on black: 19.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.9%
Green98.4%
Blue64.3%

CMYK percentages

Cyan1.6%
Magenta0.0%
Yellow34.7%
Key (black)1.6%

Color previews

#f7fba4 text on a black background

contrast 19.29:1

Card sample

#f7fba4 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(247, 251, 164, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(247, 251, 164, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f7fba4;
background: linear-gradient(135deg, #f7fba4, #BDFBA4);

Monochromatic scale

Palettes built from #f7fba4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f7fba4 in the Color Lab