Skip to content

#eafb2f

a balanced, electric yellow · cool · closest name: yellow

RGB
234, 251, 47
HSL
65°, 96%, 58%
CMYK
7, 0, 81, 2
Luminance
0.8669

Every format

HEX#eafb2f
RGBrgb(234, 251, 47)
HSLhsl(65, 96%, 58%)
CMYKcmyk(7%, 0%, 81%, 2%)
LABlab(94.6 -27.5 85.6)
LCHlch(94.6 89.9 107.8)
OKLCHoklch(0.944 0.204 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eafb2f on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#eafb2f on black: 18.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red91.8%
Green98.4%
Blue18.4%

CMYK percentages

Cyan6.8%
Magenta0.0%
Yellow81.3%
Key (black)1.6%

Color previews

#eafb2f text on a black background

contrast 18.34:1

Card sample

#eafb2f text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(234, 251, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(234, 251, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eafb2f;
background: linear-gradient(135deg, #eafb2f, #62FB2F);

Monochromatic scale

Palettes built from #eafb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eafb2f in the Color Lab