#D2288E Color Information

Hex color code: #D2288E

A understated magenta shade, #D2288E appears as (210, 40, 142) in RGB and (324°, 68%, 49%) in HSL. It is popular in mobile app design.

Try:
Color NameViolet Red
HEX
#D2288E
RGB
210, 40, 142
HSL
324°, 68%, 49%
CMYK
0%, 81%, 32%, 18%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #D2288E; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #D2288E; color: #FFFFFF; }

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 #D2288E; background-color: #D2288E15; }

Alert / Toast

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

Link / Accent

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

a { color: #D2288E; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

210, 40, 142

Red: 210 / Green: 40 / Blue: 142

HSL

324°, 68%, 49%

Hue: 324° / Saturation: 68% / Lightness: 49%

CMYK

0%, 81%, 32%, 18%

Cyan: 0% / Magenta: 81% / Yellow: 32% / Key: 18%

What color is #D2288E?

#D2288E is a magenta-red hue associated with romance and playfulness.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D2288E to RGB:

rgb(210, 40, 142)HEX to RGB Converter →

HEX to HSL

Convert #D2288E to HSL:

hsl(324, 68%, 49%)RGB to HSL Converter →

HEX to CMYK

Convert #D2288E to CMYK:

cmyk(0%, 81%, 32%, 18%)Color Converter →

Color Meaning and Usage

A balanced magenta tone, #D2288E has RGB (210, 40, 142) and HSL (324°, 68%, 49%). Known for evoking romance and playfulness, this magenta-red hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D2288E is #28D26C, creating high-contrast pairings. For softer combinations, try analogous colors like #C128D2.

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

Contrast with #D2288E

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

Contrast Ratio: 4.43:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D2288E?

#D2288E is a balanced magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #D2288E?

#D2288E in RGB is (210, 40, 142) - 210 red, 40 green, and 142 blue.

How to use #D2288E in CSS?

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

What colors go well with #D2288E?

#28D26C (complementary), #C128D2 (analogous), and #921C62 (lighter shade) work well with #D2288E.