#512F3B Color Information

Hex color code: #512F3B

#512F3B is a subtle magenta color. In RGB it is (81, 47, 59), and in HSL it is (339°, 27%, 25%). It is often used for branding and logos.

Try:
Color NameDark Slate Gray
HEX
#512F3B
RGB
81, 47, 59
HSL
339°, 27%, 25%
CMYK
0%, 42%, 27%, 68%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #512F3B; 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 #512F3B; background-color: #512F3B15; }

Alert / Toast

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

Link / Accent

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

a { color: #512F3B; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #512F3B in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

81, 47, 59

Red: 81 / Green: 47 / Blue: 59

HSL

339°, 27%, 25%

Hue: 339° / Saturation: 27% / Lightness: 25%

CMYK

0%, 42%, 27%, 68%

Cyan: 0% / Magenta: 42% / Yellow: 27% / Key: 68%

What color is #512F3B?

#512F3B is a red-orange hue associated with warmth and passion.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #512F3B to RGB:

rgb(81, 47, 59)HEX to RGB Converter →

HEX to HSL

Convert #512F3B to HSL:

hsl(339, 27%, 25%)RGB to HSL Converter →

HEX to CMYK

Convert #512F3B to CMYK:

cmyk(0%, 42%, 27%, 68%)Color Converter →

Color Meaning and Usage

A pastel magenta tone, #512F3B has RGB (81, 47, 59) and HSL (339°, 27%, 25%). Known for evoking warmth and passion, this red-orange hue is commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #512F3B is #2F5145, creating high-contrast pairings. For softer combinations, try analogous colors like #512F4C.

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

Contrast with #512F3B

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #512F3B?

#512F3B is a pastel magenta color - a red-orange hue that evokes warmth and passion.

What is the RGB value of #512F3B?

#512F3B in RGB is (81, 47, 59) - 81 red, 47 green, and 59 blue.

How to use #512F3B in CSS?

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

What colors go well with #512F3B?

#2F5145 (complementary), #512F4C (analogous), and #201317 (lighter shade) work well with #512F3B.