#511F6F Color Information

Hex color code: #511F6F

The hex color #511F6F is a balanced purple with RGB values of (81, 31, 111) and HSL of (278°, 56%, 28%). It is frequently seen in web interfaces.

Try:
Color NameIndigo
HEX
#511F6F
RGB
81, 31, 111
HSL
278°, 56%, 28%
CMYK
27%, 72%, 0%, 56%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #511F6F; 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 #511F6F; background-color: #511F6F15; }

Alert / Toast

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

Link / Accent

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

a { color: #511F6F; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #511F6F in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

81, 31, 111

Red: 81 / Green: 31 / Blue: 111

HSL

278°, 56%, 28%

Hue: 278° / Saturation: 56% / Lightness: 28%

CMYK

27%, 72%, 0%, 56%

Cyan: 27% / Magenta: 72% / Yellow: 0% / Key: 56%

What color is #511F6F?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #511F6F to RGB:

rgb(81, 31, 111)HEX to RGB Converter →

HEX to HSL

Convert #511F6F to HSL:

hsl(278, 56%, 28%)RGB to HSL Converter →

HEX to CMYK

Convert #511F6F to CMYK:

cmyk(27%, 72%, 0%, 56%)Color Converter →

Color Meaning and Usage

A understated purple tone, #511F6F has RGB (81, 31, 111) and HSL (278°, 56%, 28%). Known for evoking romance and playfulness, this magenta-red hue is popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #511F6F is #3D6F1F, creating high-contrast pairings. For softer combinations, try analogous colors like #2A1F6F.

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

Contrast with #511F6F

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #511F6F?

#511F6F is a understated purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #511F6F?

#511F6F in RGB is (81, 31, 111) - 81 red, 31 green, and 111 blue.

How to use #511F6F in CSS?

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

What colors go well with #511F6F?

#3D6F1F (complementary), #2A1F6F (analogous), and #260F34 (lighter shade) work well with #511F6F.