#512945 Color Information

Hex color code: #512945

A deep magenta shade, #512945 appears as (81, 41, 69) in RGB and (318°, 33%, 24%) in HSL. It is frequently seen in web interfaces.

Try:
Color NameDark Slate Gray
HEX
#512945
RGB
81, 41, 69
HSL
318°, 33%, 24%
CMYK
0%, 49%, 15%, 68%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #512945; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

81, 41, 69

Red: 81 / Green: 41 / Blue: 69

HSL

318°, 33%, 24%

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

CMYK

0%, 49%, 15%, 68%

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

What color is #512945?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #512945 to RGB:

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

HEX to HSL

Convert #512945 to HSL:

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

HEX to CMYK

Convert #512945 to CMYK:

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

Color Meaning and Usage

A rich magenta tone, #512945 has RGB (81, 41, 69) and HSL (318°, 33%, 24%). Known for evoking romance and playfulness, this magenta-red hue is typically applied in digital products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #512945 is #295135, creating high-contrast pairings. For softer combinations, try analogous colors like #492951.

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

Contrast with #512945

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #512945?

#512945 is a rich magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #512945?

#512945 in RGB is (81, 41, 69) - 81 red, 41 green, and 69 blue.

How to use #512945 in CSS?

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

What colors go well with #512945?

#295135 (complementary), #492951 (analogous), and #1F0F1A (lighter shade) work well with #512945.