Skip to content

#feffb2

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

RGB
254, 255, 178
HSL
61°, 100%, 85%
CMYK
0, 0, 30, 0
Luminance
0.9581

Every format

HEX#feffb2
RGBrgb(254, 255, 178)
HSLhsl(61, 100%, 85%)
CMYKcmyk(0%, 0%, 30%, 0%)
LABlab(98.4 -11.8 36.8)
LCHlch(98.4 38.6 107.8)
OKLCHoklch(0.982 0.097 108.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#feffb2 on white: 1.04:1
AA ✗ fail · AA-large · AAA
Aa
#feffb2 on black: 20.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green100.0%
Blue69.8%

CMYK percentages

Cyan0.4%
Magenta0.0%
Yellow30.2%
Key (black)0.0%

Color previews

#feffb2 text on a black background

contrast 20.16:1

Card sample

#feffb2 text on a white background

contrast 1.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #feffb2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #feffb2 in the Color Lab