darkmagenta (#8B008B)

darkmagenta is a CSS named color with the hex code #8B008B, rgb(139, 0, 139). It is a dark, vivid magenta.

darkmagenta#8B008B
Keyworddarkmagenta
HEX#8b008b
RGBrgb(139, 0, 139)
HSLhsl(300, 100%, 27%)

Full #8B008B details: palettes, shades, color-blind view →

Description

Darkmagenta has a hue of 300°, saturation 100% and lightness 27%, which places it in the pink & magenta family. The "dark" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080).

Using darkmagenta in CSS

.title { color: darkmagenta; }
.box   { background: darkmagenta; border-color: #8b008b; }
.soft  { background: rgb(139 0 139 / 20%); }   /* darkmagenta at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
purple#800080128, 0, 1282.4
rebeccapurple#663399102, 51, 1539.5
darkviolet#9400d3148, 0, 21110.9
darkorchid#9932cc153, 50, 20411.9
indigo#4b008275, 0, 13012.4
blueviolet#8a2be2138, 43, 22614.1
mediumvioletred#c71585199, 21, 13314.4
darkslateblue#483d8b72, 61, 13916.4

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 8.50:1; with black text: 2.47:1. White body text on darkmagenta meets WCAG AA.

Frequently asked questions

What is the hex code for darkmagenta?
#8B008B.
What colors are similar to darkmagenta?
purple (#800080), rebeccapurple (#663399), darkviolet (#9400d3).