Skip to content

#fffba5

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

RGB
255, 251, 165
HSL
57°, 100%, 82%
CMYK
0, 2, 35, 0
Luminance
0.9297

Every format

HEX#fffba5
RGBrgb(255, 251, 165)
HSLhsl(57, 100%, 82%)
CMYKcmyk(0%, 2%, 35%, 0%)
LABlab(97.2 -11.0 41.7)
LCHlch(97.2 43.2 104.8)
OKLCHoklch(0.972 0.107 105.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffba5 on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#fffba5 on black: 19.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green98.4%
Blue64.7%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow35.3%
Key (black)0.0%

Color previews

#fffba5 text on a black background

contrast 19.59:1

Card sample

#fffba5 text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffba5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffba5 in the Color Lab