#512949 Color Information

Hex color code: #512949

#512949 is a dark magenta color. In RGB it is (81, 41, 73), and in HSL it is (312°, 33%, 24%). It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#512949
RGB
81, 41, 73
HSL
312°, 33%, 24%
CMYK
0%, 49%, 10%, 68%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #512949; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

81, 41, 73

Red: 81 / Green: 41 / Blue: 73

HSL

312°, 33%, 24%

Hue: 312° / Saturation: 33% / Lightness: 24%

CMYK

0%, 49%, 10%, 68%

Cyan: 0% / Magenta: 49% / Yellow: 10% / Key: 68%

What color is #512949?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #512949 to RGB:

rgb(81, 41, 73)HEX to RGB Converter →

HEX to HSL

Convert #512949 to HSL:

hsl(312, 33%, 24%)RGB to HSL Converter →

HEX to CMYK

Convert #512949 to CMYK:

cmyk(0%, 49%, 10%, 68%)Color Converter →

Color Meaning and Usage

#512949 is a dramatic magenta color with RGB values of 81, 41, 73 and HSL of 312°, 33%, 24%. This magenta-red hue evokes romance and playfulness, making it suitable for commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #512949 is #295131, creating high-contrast pairings. For softer combinations, try analogous colors like #452951.

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

Contrast with #512949

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #512949?

#512949 is a dramatic magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #512949?

#512949 in RGB is (81, 41, 73) - 81 red, 41 green, and 73 blue.

How to use #512949 in CSS?

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

What colors go well with #512949?

#295131 (complementary), #452951 (analogous), and #1F0F1B (lighter shade) work well with #512949.