#D172EC Color Information

Hex color code: #D172EC

The hex color #D172EC is a eye-catching magenta with RGB values of (209, 114, 236) and HSL of (287°, 76%, 69%). It is widely used in graphic design.

Try:
Color NameViolet
HEX
#D172EC
RGB
209, 114, 236
HSL
287°, 76%, 69%
CMYK
11%, 52%, 0%, 7%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #D172EC; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

209, 114, 236

Red: 209 / Green: 114 / Blue: 236

HSL

287°, 76%, 69%

Hue: 287° / Saturation: 76% / Lightness: 69%

CMYK

11%, 52%, 0%, 7%

Cyan: 11% / Magenta: 52% / Yellow: 0% / Key: 7%

What color is #D172EC?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D172EC to RGB:

rgb(209, 114, 236)HEX to RGB Converter →

HEX to HSL

Convert #D172EC to HSL:

hsl(287, 76%, 69%)RGB to HSL Converter →

HEX to CMYK

Convert #D172EC to CMYK:

cmyk(11%, 52%, 0%, 7%)Color Converter →

Color Meaning and Usage

#D172EC is a eye-catching magenta color with RGB values of 209, 114, 236 and HSL of 287°, 76%, 69%. This magenta-red hue evokes romance and playfulness, making it suitable for frequently chosen for fintech and productivity apps. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D172EC is #8EEC74, creating high-contrast pairings. For softer combinations, try analogous colors like #9674EC.

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

Contrast with #D172EC

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D172EC?

#D172EC is a eye-catching magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #D172EC?

#D172EC in RGB is (209, 114, 236) - 209 red, 114 green, and 236 blue.

How to use #D172EC in CSS?

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

What colors go well with #D172EC?

#8EEC74 (complementary), #9674EC (analogous), and #BC31E3 (lighter shade) work well with #D172EC.