Dark Magenta
Hex #8B008B, rgb(139 0 139). A purple CSS named color.
Open in palette generatorDark Magenta color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Dark Magenta
Dark Magenta is a dark vivid purple with the hex code #8B008B. In RGB it is made of 139 red, 0 green and 139 blue; in HSL its hue is 300°, with 100% saturation and 27% lightness. Its perceptual lightness (OKLCH L) is 44.7%.
It is a CSS named color, so you can write "darkmagenta" anywhere CSS accepts a color. Against white it has a contrast ratio of 8.50:1 and against black 2.47:1, so white text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Dark Magenta mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Dark Magenta 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Dark Magenta
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Analogous
Split complementary
Contrast and readability
WCAG 2 contrast of Dark Magenta with white and black. The readable text color on Dark Magenta is white.
On white8.50:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc 87
On black2.47:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc -15
Test any pair in the contrast checker.
Color blindness preview
How Dark Magenta appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#00428E
- Deuteranopia#355288
- Tritanopia#902450
- Protanomaly#453B8C
- Deuteranomaly#524789
- Tritanomaly#8E1574
- Achromatopsia#4D4D4D
Colors similar to Dark Magenta
The closest named colors by perceptual difference (OKLab).
Use Dark Magenta in CSS and Tailwind
.dark-magenta {
color: darkmagenta; /* #8B008B */
background-color: rgb(139 0 139);
border-color: oklch(44.7% 0.205 328.4);
}/* Tailwind CSS v4: bg-dark-magenta-500, text-dark-magenta-700... */
@theme {
--color-dark-magenta-50: #FFF7FE;
--color-dark-magenta-100: #FFE5FD;
--color-dark-magenta-200: #FEC9FB;
--color-dark-magenta-300: #FB9BF8;
--color-dark-magenta-400: #F057EE;
--color-dark-magenta-500: #E309E3;
--color-dark-magenta-600: #C700C7;
--color-dark-magenta-700: #A600A6;
--color-dark-magenta-800: #8B008B;
--color-dark-magenta-900: #6F076F;
--color-dark-magenta-950: #2A002A;
}
<!-- or the exact color, no config -->
<div class="bg-[#8B008B] text-[#FFFFFF]">…</div>