Skip to content

#fef6b2

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

RGB
254, 246, 178
HSL
54°, 97%, 85%
CMYK
0, 3, 30, 0
Luminance
0.9020

Every format

HEX#fef6b2
RGBrgb(254, 246, 178)
HSLhsl(54, 97%, 85%)
CMYKcmyk(0%, 3%, 30%, 0%)
LABlab(96.1 -7.4 33.8)
LCHlch(96.1 34.6 102.3)
OKLCHoklch(0.964 0.086 102.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef6b2 on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fef6b2 on black: 19.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green96.5%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta3.1%
Yellow29.9%
Key (black)0.4%

Color previews

#fef6b2 text on a black background

contrast 19.04:1

Card sample

#fef6b2 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef6b2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef6b2 in the Color Lab