Skip to content

#fffbaf

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

RGB
255, 251, 175
HSL
57°, 100%, 84%
CMYK
0, 2, 31, 0
Luminance
0.9335

Every format

HEX#fffbaf
RGBrgb(255, 251, 175)
HSLhsl(57, 100%, 84%)
CMYKcmyk(0%, 2%, 31%, 0%)
LABlab(97.4 -9.8 37.0)
LCHlch(97.4 38.3 104.9)
OKLCHoklch(0.974 0.096 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.4%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow31.4%
Key (black)0.0%

Color previews

#fffbaf text on a black background

contrast 19.67:1

Card sample

#fffbaf text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffbaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffbaf in the Color Lab