Skip to content

#f2ed2c

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

RGB
242, 237, 44
HSL
59°, 88%, 56%
CMYK
0, 2, 82, 5
Luminance
0.7963

Every format

HEX#f2ed2c
RGBrgb(242, 237, 44)
HSLhsl(59, 88%, 56%)
CMYKcmyk(0%, 2%, 82%, 5%)
LABlab(91.5 -17.7 83.9)
LCHlch(91.5 85.8 101.9)
OKLCHoklch(0.921 0.190 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ed2c on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#f2ed2c on black: 16.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.9%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta2.1%
Yellow81.8%
Key (black)5.1%

Color previews

#f2ed2c text on a black background

contrast 16.93:1

Card sample

#f2ed2c text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 237, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 237, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ed2c;
background: linear-gradient(135deg, #f2ed2c, #73F22C);

Monochromatic scale

Palettes built from #f2ed2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ed2c in the Color Lab