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.
| Format | Value | |
|---|---|---|
| HEX | #8B008B | |
| RGB | rgb(139, 0, 139) | |
| HSL | hsl(300, 100%, 27%) | |
| CMYK | 0%, 100%, 0%, 45% | |
| CSS name | darkmagenta |
.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.
Tints and shades of dark magenta
Tints mix the color with white; shades mix it with black.
Dark Magenta
Contrast and readability
2.47:1
fails
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.