#D52DA8 Color Information

Hex color code: #D52DA8

The hex color #D52DA8 is a subtle magenta with RGB values of (213, 45, 168) and HSL of (316°, 67%, 51%). It is often used for branding and logos.

Try:
Color NameViolet Red
HEX
#D52DA8
RGB
213, 45, 168
HSL
316°, 67%, 51%
CMYK
0%, 79%, 21%, 16%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #D52DA8; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

213, 45, 168

Red: 213 / Green: 45 / Blue: 168

HSL

316°, 67%, 51%

Hue: 316° / Saturation: 67% / Lightness: 51%

CMYK

0%, 79%, 21%, 16%

Cyan: 0% / Magenta: 79% / Yellow: 21% / Key: 16%

What color is #D52DA8?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D52DA8 to RGB:

rgb(213, 45, 168)HEX to RGB Converter →

HEX to HSL

Convert #D52DA8 to HSL:

hsl(316, 67%, 51%)RGB to HSL Converter →

HEX to CMYK

Convert #D52DA8 to CMYK:

cmyk(0%, 79%, 21%, 16%)Color Converter →

Color Meaning and Usage

#D52DA8 is a balanced magenta color with RGB values of 213, 45, 168 and HSL of 316°, 67%, 51%. This magenta-red hue evokes romance and playfulness, making it suitable for commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D52DA8 is #2ED65B, creating high-contrast pairings. For softer combinations, try analogous colors like #AF2ED6.

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

Contrast with #D52DA8

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D52DA8?

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

What is the RGB value of #D52DA8?

#D52DA8 in RGB is (213, 45, 168) - 213 red, 45 green, and 168 blue.

How to use #D52DA8 in CSS?

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

What colors go well with #D52DA8?

#2ED65B (complementary), #AF2ED6 (analogous), and #991E79 (lighter shade) work well with #D52DA8.