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
| HEX | #ff00ff |
| RGB | rgb(255, 0, 255) |
| HSL | hsl(300, 100%, 50%) |
Harmonies
Complementary
Analogous
#8000ff#ff0080Split complementary
#80ff00#00ff80Tints & shades
Accessibility
| vs #ffffff | 3.14:1 |
| vs #000000 | 6.7:1 |
| Suggested text color | #000000 · 6.7:1 · WCAG AA |
Similar named colors
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.