Dark magenta
Dark magenta is a vivid shade of magenta. Hex code #8B008B.
Dark magenta color codes
- CSS name
darkmagenta - HEX
#8B008B - RGB
rgb(139, 0, 139) - HSL
hsl(300, 100%, 27%) - OKLCH
oklch(44.7% 0.205 328.4)
HSB and CMYK values
- HSB / HSV
hsb(300, 100%, 55%) - CMYK
C0 M100 Y0 K45
White text
8.49:1 · passes WCAG AAA
Black text
2.47:1 · fails WCAG
Shades of dark magenta
A darker shade of dark magenta is #5D065D (700), and a lighter one is #BF47BE (400).
Colors that go with dark magenta
Complementary
Analogous
Triadic
The complementary color of dark magenta is #008B00, close to forest green.
Click a color to copy its hex code.
Colors similar to dark magenta
- Purple#800080
Slightly darker
- Rebecca purple#663399
More blue, more muted
- Dark violet#9400D3
Lighter, less pink, more vivid
- Dark orchid#9932CC
Lighter, less pink
- Medium violet red#C71585
Lighter, more pink
- Indigo#4B0082
Darker, more blue
Each compared with dark magenta.
About this color
Dark magenta in CSS and design
Dark magenta is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same dark magenta:
color: darkmagenta;
color: #8B008B;
color: rgb(139, 0, 139);
color: hsl(300, 100%, 27%);Frequently asked questions
What is the hex code for dark magenta?
#8B008B. In CSS you can also use the keyword darkmagenta, which works in every browser.
What is dark magenta in RGB and HSL?
In RGB it is rgb(139, 0, 139) and in HSL hsl(300, 100%, 27%). In CMYK it is about C0 M100 Y0 K45, though printed colors vary with paper and ink.
Should I use black or white text on dark magenta?
White text works better: it has a contrast ratio of 8.49:1 and passes WCAG AAA. Black text reaches 2.47:1.
What is the complementary color of dark magenta?
#008B00, close to forest green. It sits opposite dark magenta on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with dark magenta?
For strong contrast, pair it with its complementary color #008B00. For a calmer look, combine it with its analogous neighbors #46008B and #8B0046. The palette generator builds more combinations.