Magenta Color Code (#ff00ff)

Magenta is #ff00ff in hex and rgb(255, 0, 255) — a medium magenta. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Magenta
#ff00ff
CSS namemagenta (also fuchsia)
Hex#ff00ff
RGBrgb(255, 0, 255)
HSLhsl(300 100% 50%)
HWBhwb(300 0% 0%)
CMYK0%, 100%, 0%, 0%

Tints and shades

Color harmonies

About Magenta

Magenta (magenta) is a medium, vivid magenta with the hex code #ff00ff, or rgb(255, 0, 255). In HSL it sits at a hue of 300°, 100% saturation and 50% lightness. CSS also accepts the spelling fuchsia for exactly the same color. It is one of the 148 named colors every browser understands, so you can write color: magenta; instead of the hex value.

Using Magenta for text and backgrounds

PairingContrast ratioWCAG
Magenta text on white3.14 : 1AA large text only
Magenta text on black6.70 : 1AA

On a magenta background, use black text (6.70 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: magenta;               /* or #ff00ff */
  background-color: #ff00ff;
  border: 1px solid rgb(255 0 255 / 50%);
}

Similar named colors

Deep Pink (#ff1493), Dark Violet (#9400d3), Medium Orchid (#ba55d3), Dark Orchid (#9932cc), Orchid (#da70d6), Blue Violet (#8a2be2).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for magenta?
#ff00ff — that is rgb(255, 0, 255) and hsl(300, 100%, 50%). In CSS you can also just write magenta.
Is magenta text readable on white?
Its contrast ratio on white is 3.14 : 1, which passes only for large text (WCAG AA large).
What colors go well with magenta?
Its complementary color is #00ff00; analogous colors #8000ff and #ff0080 sit next to it on the color wheel.