CSS named color

DarkMagenta #8B008B

darkmagenta rgb(139, 0, 139)

DarkMagenta is a dark magenta with the hex code #8B008B, which converts to rgb(139, 0, 139). Open #8B008B in the converter to tweak it.

DarkMagenta color values

HEX#8B008B
HEX (shorthand)—
RGBrgb(139, 0, 139)
RGBArgba(139, 0, 139, 1)
8-digit HEX#8B008BFF
HSLhsl(300, 100%, 27%)
HSV / HSB300°, 100%, 55%
CMYK0%, 100%, 0%, 45%
RGB 0–10.545, 0, 0.545
Decimal9109643
CSS keyworddarkmagenta

How #8B008B converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: 8B → 139, 00 → 0, 8B → 139. That gives rgb(139, 0, 139). The step-by-step guide explains the math.

Shades of DarkMagenta

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of DarkMagenta

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of DarkMagenta on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White DarkMagenta 8.49:1AAA
Black DarkMagenta 2.47:1Fail

Use white text on a darkmagenta background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use DarkMagenta in CSS

.element {
  color: darkmagenta;                         /* keyword */
  background-color: #8B008B;            /* hex */
  border-color: rgb(139 0 139 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #8B008B80 is DarkMagenta at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for DarkMagenta?

The CSS named color darkmagenta is #8B008B in hexadecimal. In CSS you can write color: darkmagenta; or color: #8B008B; — both produce the same pixel.

What is DarkMagenta in RGB?

DarkMagenta is rgb(139, 0, 139): red 139, green 0, blue 139 on the 0–255 scale. As normalized 0–1 floats that is (0.545, 0, 0.545).

Is white or black text more readable on DarkMagenta?

White text is more readable. White on #8B008B has a contrast ratio of 8.49:1 (AAA), black on #8B008B has 2.47:1 (Fail). WCAG AA needs 4.5:1 for normal text.

Copied!