Dark Magenta Color

HEX #8B008B · rgb(139, 0, 139) · hsl(300, 100%, 27%)

Dark Magenta color codes

Dark Magenta is one of the named colors every browser understands. In CSS you can write it as darkmagenta or #8B008B.

FormatValue
HEX#8B008B
RGBrgb(139, 0, 139)
HSLhsl(300, 100%, 27%)
CMYK0%, 100%, 0%, 45%
CSS namedarkmagenta
.example {
  color: darkmagenta;
  background-color: #8B008B;
  border-color: rgb(139, 0, 139);
}

Colors that go with dark magenta

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#008B00Complementary
#46008BAnalogous
#8B0046Analogous
#8B8B00Triadic
#008B8BTriadic
Dark Cyan

Tints and shades of dark magenta

Tints mix the color with white; shades mix it with black.

#F3E6F390% white
#E2BFE275% white
#D199D160% white
#BF73BF45% white
#AE4DAE30% white
#9C269C15% white
#8B008BBase
Dark Magenta
#76007615% black
#61006130% black
#4C004C45% black
#38003860% black
#23002375% black
#0E000E90% black

Contrast and readability

Black text
2.47:1
fails
White text
8.50:1
passes AA and AAA

Use white text on dark magenta. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for dark magenta?

The hex code for dark magenta is #8B008B.

What is the RGB value of dark magenta?

Dark Magenta is rgb(139, 0, 139): 139 red, 0 green and 139 blue on a 0 to 255 scale.

What color goes with dark magenta?

Its complementary color is #008B00, which is closest to the named color green. Analogous and triadic matches are listed on this page.

Should text on dark magenta be black or white?

Use white text. The contrast ratio is 2.47:1 with black and 8.50:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.