#D31279 Color Information

Hex color code: #D31279

A vivid magenta shade, #D31279 appears as (211, 18, 121) in RGB and (328°, 84%, 45%) in HSL. It is commonly used in modern UI design.

Try:
Color NameMedium Violet Red
HEX
#D31279
RGB
211, 18, 121
HSL
328°, 84%, 45%
CMYK
0%, 91%, 43%, 17%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #D31279; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

211, 18, 121

Red: 211 / Green: 18 / Blue: 121

HSL

328°, 84%, 45%

Hue: 328° / Saturation: 84% / Lightness: 45%

CMYK

0%, 91%, 43%, 17%

Cyan: 0% / Magenta: 91% / Yellow: 43% / Key: 17%

What color is #D31279?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D31279 to RGB:

rgb(211, 18, 121)HEX to RGB Converter →

HEX to HSL

Convert #D31279 to HSL:

hsl(328, 84%, 45%)RGB to HSL Converter →

HEX to CMYK

Convert #D31279 to CMYK:

cmyk(0%, 91%, 43%, 17%)Color Converter →

Color Meaning and Usage

A striking magenta tone, #D31279 has RGB (211, 18, 121) and HSL (328°, 84%, 45%). Known for evoking energy and excitement, this highly saturated hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D31279 is #12D36C, creating high-contrast pairings. For softer combinations, try analogous colors like #CD12D3.

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

Contrast with #D31279

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D31279?

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

What is the RGB value of #D31279?

#D31279 in RGB is (211, 18, 121) - 211 red, 18 green, and 121 blue.

How to use #D31279 in CSS?

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

What colors go well with #D31279?

#12D36C (complementary), #CD12D3 (analogous), and #8D0C51 (lighter shade) work well with #D31279.