Skip to content
Color Codes

CSS named color

DarkMagenta Color Code

DarkMagenta is a dark, vivid magenta with the hex code #8B008B. In RGB it is rgb(139, 0, 139), in HSL hsl(300, 100%, 27%) and in CMYK cmyk(0%, 100%, 0%, 45%).

DarkMagenta
#8B008B

Color values

In CSS you can write it as the keyword darkmagenta.

White text on DarkMagenta has a contrast ratio of 8.50:1 and black text 2.47:1, so white text is the more readable choice.

The closest Tailwind CSS color is Fuchsia 800 (#86198F).

Use DarkMagenta in CSS

.element {
  color: darkmagenta;
  background-color: #8b008b;
  border-color: rgb(139, 0, 139);
}

Tints and shades of DarkMagenta

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with DarkMagenta

Color-wheel harmonies built from #8B008B. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on DarkMagenta

Aa
White text
8.50:1
AAA
Aa
Black text
2.47:1
Fail
Check in the contrast checker

Colors similar to DarkMagenta

Palettes with similar colors

Questions about DarkMagenta

What is the hex code for DarkMagenta?

The hex code for DarkMagenta is #8B008B. Its RGB value is rgb(139, 0, 139) and its HSL value is hsl(300, 100%, 27%).

What colors go with DarkMagenta?

The complementary color of DarkMagenta is #008A00. For a softer scheme try the analogous colors #45008A and #8A0045; for a balanced three-color scheme use the triadic colors #8A8A00 and #008A8A.

Is DarkMagenta readable as a text color?

On a white background DarkMagenta has a contrast ratio of 8.50:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 2.47:1.

More purple colors