AfoliOpen Afoli →

Dark Magenta color #8B008B

Dark Magenta is one of the CSS named colors (keyword darkmagenta) with the hex code #8B008B — RGB 139, 0, 139, HSL 300°, 100%, 27%.

Open in Afoli Colour tools →

#8B008BDark Magenta

Color codes

HEX
#8B008B
RGB
rgb(139, 0, 139)
HSL
hsl(300, 100%, 27%)
CMYK
0%, 100%, 0%, 45%
OKLCH
oklch(44.7% 0.205 328.4)
CSS keyword
darkmagenta

Tints and shades

#FFEFFE#FFC3FC#FF8FFC#E86EE5#CC54CA#B038AF#951695#760076#550055#360036#1A001A

Color harmonies

Complementary
#8B008B#006727
Analogous
#6725B3#8B008B#9B0053
Triadic
#8B008B#695100#00606B
Split complementary
#8B008B#4F5C00#006355
Tetradic
#8B008B#7F4300#006727#005B85

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Dark Magenta text on white8.50 : 187AAA — any text
Dark Magenta text on black2.47 : 1-15Fails for text
White text on Dark Magenta8.50 : 1-92AAA — any text
Black text on Dark Magenta2.47 : 117Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Dark Magenta?

Dark Magenta has the hex code #8B008B, which is RGB 139, 0, 139 and HSL 300°, 100%, 27%.

Which text color reads best on Dark Magenta?

White text: contrast 8.50 : 1 (black text: 2.47 : 1).

Which colors go well with Dark Magenta?

Its complementary color is #006727; analogous colors are #6725B3 and #9B0053; a triadic set adds #695100 and #00606B.

Similar colors

Sources and licences

Updated November 21, 2026