Dark magenta #8B008B
Dark magenta is one of the named colours in CSS, written darkmagenta. White text reaches 8.50:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | darkmagenta |
|---|---|
| HEX | #8B008B |
| RGB | rgb(139 0 139) |
| HSL | hsl(300 100% 27%) |
| OKLCH | oklch(44.7% 0.205 328.4) |
| White text | 8.50:1 · body text AA Pass |
| Black text | 2.47:1 · body text AA Fail |
Colours that go with Dark magenta
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Violet Red (#642D5E), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Dark magenta itself.
| Colour | HEX | Contrast with Dark magenta | Body text AA |
|---|---|---|---|
| Dull Blue Violet | #80719E | 1.93:1 | Fail |
Palettes with Violet Red
Shades and tints of Dark magenta
Nine lightness steps in OKLCH that keep the hue of Dark magenta. Chroma is reduced only where sRGB cannot show it.
- 100#FFF0FE
- 200#FFD5FC
- 300#FFACFB
- 400#F47AF1
- 500#D259D0
- 600#AD34AC
- 700#8C028C
- 800#630063
- 900#3C003C
:root {
--darkmagenta-100: #FFF0FE;
--darkmagenta-200: #FFD5FC;
--darkmagenta-300: #FFACFB;
--darkmagenta-400: #F47AF1;
--darkmagenta-500: #D259D0;
--darkmagenta-600: #AD34AC;
--darkmagenta-700: #8C028C;
--darkmagenta-800: #630063;
--darkmagenta-900: #3C003C;
}
Text that keeps Dark magenta on screen
Text #8B008B on #FFF0FE reaches 7.75:1, which passes WCAG AA for body text. Check it on a dashboard