#511F8E Color Information

Hex color code: #511F8E

#511F8E is a tranquil purple color. In RGB it is (81, 31, 142), and in HSL it is (267°, 64%, 34%). It is widely used in graphic design.

Try:
Color NameRebecca Purple
HEX
#511F8E
RGB
81, 31, 142
HSL
267°, 64%, 34%
CMYK
43%, 78%, 0%, 44%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #511F8E; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

81, 31, 142

Red: 81 / Green: 31 / Blue: 142

HSL

267°, 64%, 34%

Hue: 267° / Saturation: 64% / Lightness: 34%

CMYK

43%, 78%, 0%, 44%

Cyan: 43% / Magenta: 78% / Yellow: 0% / Key: 44%

What color is #511F8E?

#511F8E is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #511F8E to RGB:

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

HEX to HSL

Convert #511F8E to HSL:

hsl(267, 64%, 34%)RGB to HSL Converter →

HEX to CMYK

Convert #511F8E to CMYK:

cmyk(43%, 78%, 0%, 44%)Color Converter →

Color Meaning and Usage

A calming purple tone, #511F8E has RGB (81, 31, 142) and HSL (267°, 64%, 34%). Known for evoking creativity and luxury, this blue-purple hue is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #511F8E is #5C8E1F, creating high-contrast pairings. For softer combinations, try analogous colors like #1F258E.

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

Contrast with #511F8E

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #511F8E?

#511F8E is a calming purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #511F8E?

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

How to use #511F8E in CSS?

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

What colors go well with #511F8E?

#5C8E1F (complementary), #1F258E (analogous), and #2D114F (lighter shade) work well with #511F8E.