⤺ color picker

#8b008b Color Hex (dark magenta)

Hex color #8b008b, RGB(139, 0, 139) - also known as dark magenta - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.

The hex color code #8b008b is a shade of magenta. In a RGB color space it is composed of 54.51% red, 0% green and 54.51% blue. In HSL notation it has 300° hue, 100% saturation and 27.3% lightness. The process color (CMYK) is combination of 0% cyan, 100% magenta, 0% yellow and 45.49% key (black). The closest short hexadecimal code of #8b008b is #808.

Color information

  • #8b008b is a shade of magenta.
  • CMYK color proportions:
    • Cyan: 0%
    • Magenta: 100%
    • Yellow: 0%
    • Key color - black: 45.49%
  • In the HSL model coordinates are:
    • Hue: 300° degrees
    • Saturation: 100%
    • Lightness: 27.3%
  • The values in the RGB color space are:
    • Red: 139 (54.51%)
    • Green: 0 (0%)
    • Blue: 139 (54.51%)


C: 0%, M: 100%, Y: 0%, K: 45.49%
R: 139, G: 0, B: 139
H: 300°, S: 100%, L: 27.3%

Color harmonies

#8b008b color HTML and CSS codes

Example CSS code:

.setFontColor { color: #8b008b; }
.setBackgroundColor { background-color: #8b008b; }

#8b008b text/font color

How to set font color?

<p style="color:#8b008b">Font color is #8b008b.</p>

Font color is #8b008b.

Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything. Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore

#8b008b background color

How to set background color?

<div style="background-color:#8b008b">Background color is #8b008b.</div>

Background color is #8b008b.

When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant