#F02878 Color Information

Hex color code: #F02878

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

Try:
Color NameDeep Pink
HEX
#F02878
RGB
240, 40, 120
HSL
336°, 87%, 55%
CMYK
0%, 83%, 50%, 6%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #F02878; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

240, 40, 120

Red: 240 / Green: 40 / Blue: 120

HSL

336°, 87%, 55%

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

CMYK

0%, 83%, 50%, 6%

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

What color is #F02878?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #F02878 to RGB:

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

HEX to HSL

Convert #F02878 to HSL:

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

HEX to CMYK

Convert #F02878 to CMYK:

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

Color Meaning and Usage

A eye-catching magenta tone, #F02878 has RGB (240, 40, 120) and HSL (336°, 87%, 55%). Known for evoking energy and excitement, this highly saturated hue is often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #F02878 is #28F0A0, creating high-contrast pairings. For softer combinations, try analogous colors like #F028DC.

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

Contrast with #F02878

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #F02878?

#F02878 is a eye-catching magenta color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #F02878?

#F02878 in RGB is (240, 40, 120) - 240 red, 40 green, and 120 blue.

How to use #F02878 in CSS?

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

What colors go well with #F02878?

#28F0A0 (complementary), #F028DC (analogous), and #BF0D54 (lighter shade) work well with #F02878.