darkmagenta — #8B008B
#8B008B
rgb(139, 0, 139) · hsl(300, 100%, 27%) · CSS keyword darkmagenta
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| darkmagenta on white | 8.5:1 | AA | AA |
| darkmagenta on black | 2.47:1 | — | — |
As a background, darkmagenta takes white text: 8.5:1 against 2.47:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: darkmagenta;
color: #8b008b;
color: rgb(139 0 139);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to darkmagenta
- purple — #800080
- darkviolet — #9400D3
- indigo — #4B0082
- mediumvioletred — #C71585
- blueviolet — #8A2BE2
- rebeccapurple — #663399
Frequently asked questions
What is the hex code for darkmagenta?
The hex code for darkmagenta is #8B008B — RGB 139, 0, 139.
Can I use darkmagenta for text?
Yes. darkmagenta reaches 8.5:1 against white, past the 4.5:1 that WCAG AA asks for body text.
Should text on darkmagenta be black or white?
White — 8.5:1 against 2.47:1 the other way.
Other named colours
- darkolivegreen — #556B2F
- darkorange — #FF8C00
- darkorchid — #9932CC
- darkred — #8B0000
- darksalmon — #E9967A
- darkseagreen — #8FBC8F
- darkslateblue — #483D8B
- darkslategray — #2F4F4F
- darkturquoise — #00CED1
- darkviolet — #9400D3
- deeppink — #FF1493
- deepskyblue — #00BFFF
#8B008B in full — tints, shades and harmonies · All named colours · Colour reference