#540825 Color Information

Hex color code: #540825

The hex color #540825 is a deep magenta with RGB values of (84, 8, 37) and HSL of (337°, 83%, 18%). It is commonly used in modern UI design.

Try:
Color NameMaroon
HEX
#540825
RGB
84, 8, 37
HSL
337°, 83%, 18%
CMYK
0%, 90%, 56%, 67%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #540825; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

84, 8, 37

Red: 84 / Green: 8 / Blue: 37

HSL

337°, 83%, 18%

Hue: 337° / Saturation: 83% / Lightness: 18%

CMYK

0%, 90%, 56%, 67%

Cyan: 0% / Magenta: 90% / Yellow: 56% / Key: 67%

What color is #540825?

#540825 is a very dark shade associated with sophistication and elegance.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #540825 to RGB:

rgb(84, 8, 37)HEX to RGB Converter →

HEX to HSL

Convert #540825 to HSL:

hsl(337, 83%, 18%)RGB to HSL Converter →

HEX to CMYK

Convert #540825 to CMYK:

cmyk(0%, 90%, 56%, 67%)Color Converter →

Color Meaning and Usage

A dramatic magenta tone, #540825 has RGB (84, 8, 37) and HSL (337°, 83%, 18%). Known for evoking sophistication and elegance, this very dark shade is typically applied in digital products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #540825 is #085437, creating high-contrast pairings. For softer combinations, try analogous colors like #54084B.

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

Contrast with #540825

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #540825?

#540825 is a dramatic magenta color - a very dark shade that evokes sophistication and elegance.

What is the RGB value of #540825?

#540825 in RGB is (84, 8, 37) - 84 red, 8 green, and 37 blue.

How to use #540825 in CSS?

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

What colors go well with #540825?

#085437 (complementary), #54084B (analogous), and #0E0106 (lighter shade) work well with #540825.