Dark Magenta Color Code: Hex #8B008B
The hex code for Dark Magenta is #8B008B (the CSS keyword darkmagenta). Dark Magenta RGB code: rgb(139, 0, 139). The xkcd color survey gives #960056 instead, which looks clearly different; both codes are below with their source.
#8B008BTop: the code browsers use#960056Below: compare edge to edgeDark Magenta color codes: each Dark Magenta hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- purple
- Contrast
- 8.50:1 with white, 2.47:1 with black
- CSS keyword
- darkmagenta
- Character
- dark, vivid
- Readable text on it
- white (AA)
It is exactly the fourth numbered X11 variant of magenta, Magenta4, which keeps the hue at 55% brightness. The printer media color standard PWG 5101.1 uses the same value for its dark magenta.
A dark, vivid purple with a warm cast. In code, darkmagenta gives exactly this web value. If you mean the color as people usually picture the name, the survey value #960056 is closer: it is about as light and more muted.
White text reads best on it; black text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Purple, its closest named neighbour, it looks lighter, more vivid and neither warmer nor cooler; beside Rebecca Purple it looks about as light, more vivid and warmer.
Colors that go with Dark Magenta
Complementary: the opposite of Dark Magenta
#8B008BWhite text 8.50:1#006727White text 7.07:1#C383C0Black text 7.33:1#003D14White text 12.52:1
Analogous
#6725B3White text 8.43:1#8B008BWhite text 8.50:1#9B0053White text 8.34:1#D5A5D2Black text 10.14:1
Triadic
#8B008BWhite text 8.50:1#695100White text 7.56:1#00606BWhite text 7.28:1#E5C6E3Black text 13.52:1
Monochrome
#230023White text 19.17:1#540054White text 13.95:1#8B008BWhite text 8.50:1#B161AFBlack text 5.20:1#D5A5D2Black text 10.14:1
With neutrals
#8B008BWhite text 8.50:1#E5C6E3Black text 13.52:1#0D000DWhite text 20.53:1#876685White text 4.92:1
Preview
Heading on Dark Magenta
Body text on this color, 8.50:1.
ButtonHeading in Dark Magenta
Text in this color on white, 8.50:1.
ButtonTints and shades
#E5C6E3#D5A5D2#C383C0#B161AF#9F3D9D#8B008B#6F006F#540054#3A003A#230023#0D000D
WhiteDark MagentaBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 1 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: