Dark Magenta Color Code (#8b008b)

Dark Magenta is #8b008b in hex and rgb(139, 0, 139) — a dark magenta. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Dark Magenta
#8b008b
CSS namedarkmagenta
Hex#8b008b
RGBrgb(139, 0, 139)
HSLhsl(300 100% 27%)
HWBhwb(300 0% 45%)
CMYK0%, 100%, 0%, 45%

Tints and shades

Color harmonies

About Dark Magenta

Dark Magenta (darkmagenta) is a dark, vivid magenta with the hex code #8b008b, or rgb(139, 0, 139). In HSL it sits at a hue of 300°, 100% saturation and 27% lightness. It is one of the 148 named colors every browser understands, so you can write color: darkmagenta; instead of the hex value.

Using Dark Magenta for text and backgrounds

PairingContrast ratioWCAG
Dark Magenta text on white8.50 : 1AAA
Dark Magenta text on black2.47 : 1fails

On a dark magenta background, use white text (8.50 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: darkmagenta;               /* or #8b008b */
  background-color: #8b008b;
  border: 1px solid rgb(139 0 139 / 50%);
}

Similar named colors

Purple (#800080), Medium Violet Red (#c71585), Rebecca Purple (#663399), Indigo (#4b0082), Dark Violet (#9400d3), Dark Orchid (#9932cc).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for dark magenta?
#8b008b — that is rgb(139, 0, 139) and hsl(300, 100%, 27%). In CSS you can also just write darkmagenta.
Is dark magenta text readable on white?
Its contrast ratio on white is 8.50 : 1, which passes WCAG AA for normal text.
What colors go well with dark magenta?
Its complementary color is #008a00; analogous colors #45008a and #8a0045 sit next to it on the color wheel.