#F02872 Color Information

Hex color code: #F02872

A vivid magenta shade, #F02872 appears as (240, 40, 114) in RGB and (338°, 87%, 55%) in HSL. It is commonly used in modern UI design.

Try:
Color NameDeep Pink
HEX
#F02872
RGB
240, 40, 114
HSL
338°, 87%, 55%
CMYK
0%, 83%, 53%, 6%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #F02872; 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 #F02872; background-color: #F0287215; }

Alert / Toast

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

Link / Accent

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

a { color: #F02872; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

240, 40, 114

Red: 240 / Green: 40 / Blue: 114

HSL

338°, 87%, 55%

Hue: 338° / Saturation: 87% / Lightness: 55%

CMYK

0%, 83%, 53%, 6%

Cyan: 0% / Magenta: 83% / Yellow: 53% / Key: 6%

What color is #F02872?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #F02872 to RGB:

rgb(240, 40, 114)HEX to RGB Converter →

HEX to HSL

Convert #F02872 to HSL:

hsl(338, 87%, 55%)RGB to HSL Converter →

HEX to CMYK

Convert #F02872 to CMYK:

cmyk(0%, 83%, 53%, 6%)Color Converter →

Color Meaning and Usage

#F02872 is a striking magenta color with RGB values of 240, 40, 114 and HSL of 338°, 87%, 55%. This highly saturated hue evokes energy and excitement, making it suitable for frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #F02872 is #28F0A7, creating high-contrast pairings. For softer combinations, try analogous colors like #F028D5.

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

Contrast with #F02872

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

Contrast Ratio: 5.25:1
WCAG AA: Pass
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #F02872?

#F02872 is a striking magenta color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #F02872?

#F02872 in RGB is (240, 40, 114) - 240 red, 40 green, and 114 blue.

How to use #F02872 in CSS?

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

What colors go well with #F02872?

#28F0A7 (complementary), #F028D5 (analogous), and #BF0D4E (lighter shade) work well with #F02872.