#511772 Color Information

Hex color code: #511772

The hex color #511772 is a muted purple with RGB values of (81, 23, 114) and HSL of (278°, 66%, 27%). It is typically applied in digital products.

Try:
Color NameIndigo
HEX
#511772
RGB
81, 23, 114
HSL
278°, 66%, 27%
CMYK
29%, 80%, 0%, 55%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #511772; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

81, 23, 114

Red: 81 / Green: 23 / Blue: 114

HSL

278°, 66%, 27%

Hue: 278° / Saturation: 66% / Lightness: 27%

CMYK

29%, 80%, 0%, 55%

Cyan: 29% / Magenta: 80% / Yellow: 0% / Key: 55%

What color is #511772?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #511772 to RGB:

rgb(81, 23, 114)HEX to RGB Converter →

HEX to HSL

Convert #511772 to HSL:

hsl(278, 66%, 27%)RGB to HSL Converter →

HEX to CMYK

Convert #511772 to CMYK:

cmyk(29%, 80%, 0%, 55%)Color Converter →

Color Meaning and Usage

#511772 is a neutral purple color with RGB values of 81, 23, 114 and HSL of 278°, 66%, 27%. This magenta-red hue evokes romance and playfulness, making it suitable for a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #511772 is #397217, creating high-contrast pairings. For softer combinations, try analogous colors like #241772.

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

Contrast with #511772

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #511772?

#511772 is a neutral purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #511772?

#511772 in RGB is (81, 23, 114) - 81 red, 23 green, and 114 blue.

How to use #511772 in CSS?

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

What colors go well with #511772?

#397217 (complementary), #241772 (analogous), and #240A33 (lighter shade) work well with #511772.