Skip to content

#fefba2

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

RGB
254, 251, 162
HSL
58°, 98%, 82%
CMYK
0, 1, 36, 0
Luminance
0.9267

Every format

HEX#fefba2
RGBrgb(254, 251, 162)
HSLhsl(58, 98%, 82%)
CMYKcmyk(0%, 1%, 36%, 0%)
LABlab(97.1 -11.7 43.0)
LCHlch(97.1 44.6 105.2)
OKLCHoklch(0.971 0.110 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefba2 on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#fefba2 on black: 19.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green98.4%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow36.2%
Key (black)0.4%

Color previews

#fefba2 text on a black background

contrast 19.53:1

Card sample

#fefba2 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefba2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefba2 in the Color Lab