magenta magenta #ff00ff

magenta is #ff00ff in hexadecimal, rgb(255, 0, 255) in decimal and hsl(300, 100, 50) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.

HEX · RGB · HSL

#ff00ff
HEX#ff00ff
RGBrgb(255, 0, 255)
HSLhsl(300, 100%, 50%)

Harmonies

Complementary

Analogous

#8000ff#ff0080

Triadic

Split complementary

#80ff00#00ff80

Tints & shades

#db00db#eb00eb#ff00ff#ff14ff#ff24ff

Accessibility

vs #ffffff3.14:1
vs #0000006.7:1
Suggested text color#000000 · 6.7:1 · WCAG AA

Similar named colors

fuchsia#ff00ffdeeppink#ff1493darkviolet#9400d3mediumorchid#ba55d3darkorchid#9932ccorchid#da70d6

FAQ

What is the HEX code for magenta?

magenta is #ff00ff in hex, rgb(255, 0, 255) in decimal and hsl(300, 100%, 50%) in HSL. In CSS you can write either color: magenta; or color: #ff00ff; — they are equivalent.

What colors go with magenta?

The complementary #00ff00 gives the strongest contrast, the analogous pair #8000ff / #ff0080 is the safest, and the triad #ffff00 / #00ffff adds more tension. All three are derived from the 300° hue of #ff00ff.

Does #ff00ff read better on white or black?

Its contrast is 3.14:1 against white and 6.7:1 against black. Use #000000 text on it — that gives 6.7:1, which meets WCAG AA.

Is a named color different from a hex color?

No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.

← All named colors