#F2EC7D Color Information

Hex color code: #F2EC7D

The hex color #F2EC7D is a vivid yellow with RGB values of (242, 236, 125) and HSL of (57°, 82%, 72%). It is commonly used in modern UI design.

Try:
Color NameKhaki
HEX
#F2EC7D
RGB
242, 236, 125
HSL
57°, 82%, 72%
CMYK
0%, 2%, 48%, 5%

Shades

CSS Usage
color: #F2EC7D;
background-color: #F2EC7D;
border-color: #F2EC7D;
box-shadow: 0 0 10px #F2EC7D;
border: 2px solid #F2EC7D;
Tailwind Usage
bg-[#F2EC7D]
text-[#F2EC7D]
border-[#F2EC7D]
shadow-[0_0_10px_F2EC7D]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #F2EC7D, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #F2EC7D; color: #000000; }

Badge

New Feature
.badge { background-color: #F2EC7D; color: #000000; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #F2EC7D; background-color: #F2EC7D15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #F2EC7D20; border-left: 4px solid #F2EC7D; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #F2EC7D; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #F2EC7D in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

242, 236, 125

Red: 242 / Green: 236 / Blue: 125

HSL

57°, 82%, 72%

Hue: 57° / Saturation: 82% / Lightness: 72%

CMYK

0%, 2%, 48%, 5%

Cyan: 0% / Magenta: 2% / Yellow: 48% / Key: 5%

What color is #F2EC7D?

#F2EC7D is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #F2EC7D to RGB:

rgb(242, 236, 125)HEX to RGB Converter →

HEX to HSL

Convert #F2EC7D to HSL:

hsl(57, 82%, 72%)RGB to HSL Converter →

HEX to CMYK

Convert #F2EC7D to CMYK:

cmyk(0%, 2%, 48%, 5%)Color Converter →

Color Meaning and Usage

A dynamic yellow tone, #F2EC7D has RGB (242, 236, 125) and HSL (57°, 82%, 72%). Known for evoking energy and excitement, this highly saturated hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #F2EC7D is #7D83F2, creating high-contrast pairings. For softer combinations, try analogous colors like #F2B27D.

Use #F2EC7D in CSS: color: #F2EC7D or background-color: #F2EC7D. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #F2EC7D

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 17.07:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #F2EC7D?

#F2EC7D is a dynamic yellow color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #F2EC7D?

#F2EC7D in RGB is (242, 236, 125) - 242 red, 236 green, and 125 blue.

How to use #F2EC7D in CSS?

Use #F2EC7D directly in your CSS properties like color or background-color.

What colors go well with #F2EC7D?

#7D83F2 (complementary), #F2B27D (analogous), and #EBE237 (lighter shade) work well with #F2EC7D.