CSS color names · Purples

Dark Magenta color: hex #8b008b, RGB and HSL

Dark Magenta is the CSS keyword darkmagenta, hex #8b008b, rgb(139, 0, 139), hsl(300, 100%, 27%). It is a dark, fully saturated magenta in the purples family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
darkmagenta
Hex
#8b008b
RGB
rgb(139, 0, 139)
HSL
hsl(300, 100%, 27%)
On white
8.5:1 — passes AA for body text
On black
2.47:1 — fails AA; use as a fill, not text
.example {
  color: darkmagenta;          /* keyword */
  color: #8b008b;          /* hex */
  color: rgb(139, 0, 139); /* rgb */
  color: hsl(300, 100%, 27%); /* hsl */
}

What colors go with dark magenta

Each match keeps dark magenta's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside dark magenta as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#008b00

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#468b00
#008b46

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#46008b
#8b0046

Tints and shades of dark magenta

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as dark magenta — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#c900c9
#ff08ff
#ff45ff
#ff83ff
#ffc1ff

Shades (darker)

#740074
#5d005d
#450045
#2e002e
#170017

A UI color palette built from dark magenta

The eight semantic roles an interface actually uses, derived from dark magenta as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#8b008b
secondary
#468b00
accent
#008b46
background
#fdfcfd
surface
#f7f3f7
text
#221122
muted
#8f568f
border
#ecdfec
Dark mode
primary
#ff1aff
secondary
#8cff1a
accent
#1aff8c
background
#1b0e1b
surface
#281528
text
#f6f3f6
muted
#b894b8
border
#492749

Using dark magenta in an interface

Purple is the hue most SaaS products have settled on for a primary — it is distinct from the blues of links and the reds and greens of status. The slate blues and indigo make dependable primaries; the light lavenders make tinted surfaces that still read as brand. Whichever role dark magenta takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Dark Magenta?
Dark Magenta is #8b008b. In CSS the keyword darkmagenta, the hex #8b008b, rgb(139, 0, 139) and hsl(300, 100%, 27%) all paint the same color.
What colors go with Dark Magenta?
Its complement is #008b00, the split-complementary pair is #468b00 and #008b46, the triadic partners are #8b8b00 and #008b8b, and the analogous neighbors are #46008b and #8b0046. In an interface, use Dark Magenta for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Dark Magenta on the color wheel?
The opposite (complementary) color is #008b00, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Dark Magenta for text?
Dark Magenta as text on white has a contrast ratio of 8.5:1, which passes WCAG AA for body text (4.5:1). On black it is 2.47:1, which fails for body text. It works as a text color on light surfaces.

Similar named colors

More purples

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.