Dark text passes AA
6.7:1

Magenta

#FF00FF
PNG

The magenta hex code is #FF00FF, and its RGB value is 255, 0, 255.

Magenta is a vivid purplish pink made of full red and full blue light, written in CSS as magenta or fuchsia, #FF00FF. It's named after a dye discovered in 1859, the year of the Battle of Magenta in Italy, and it's one of the three printing inks in CMYK. Black text passes AA on it at 6.7:1.

Magenta color codes

HEX#FF00FF
RGBrgb(255, 0, 255)
HSLhsl(300, 100%, 50%)
OKLCHoklch(70.2% 0.322 328.4)
CMYKcmyk(0%, 100%, 0%, 0%)
CMYK is an approximate screen conversion, not for print matching.

Shades of magenta

Ten lighter and ten darker shades of magenta, with magenta in the middle. Click a shade to copy its hex code.

LightestMagenta #FF00FFDarkest

Readability

White text on magentaNormal text at 16px. The quick brown fox jumps over the lazy dog.
3.14:1
  • Passes AA large
  • Fails AA normal
  • Fails AAA normal
  • Fails AAA large
Dark text on magentaNormal text at 16px. The quick brown fox jumps over the lazy dog.
6.7:1
  • Passes AA normal
  • Passes AA large
  • Passes AAA large
  • Fails AAA normal

Colors that go with magenta

#FF00FF#00FF00

Complementary

The opposite on the color wheel
#8000FF#FF00FF#FF0080

Analogous

Its two neighbors
#FF00FF#FFFF00#00FFFF

Triadic

Three evenly spaced colors
#FF00FF#80FF00#00FF80

Split-complementary

The two colors beside its opposite

Magenta color palettes

Monochrome

Lighter and darker versions of the same color.

Analogous

Neighbors on the color wheel, for a calm, related look.

Complementary

The color with its opposite, for strong contrast.

Triadic

Three colors evenly spaced around the wheel, with a light and dark version.

Magenta background

Plain and gradient magenta backgrounds for phone and desktop wallpapers, slides and mockups, free to download.

Solid magenta background

Magenta gradient background

Questions about magenta

What is the hex code for magenta?

The hex code for magenta is #FF00FF. In RGB it's rgb(255, 0, 255), and in HSL it's hsl(300, 100%, 50%).

What is the RGB value of magenta?

Magenta is rgb(255, 0, 255) in RGB: 255 red, 0 green and 255 blue on a 0-255 scale.

What colors go with magenta?

Its complementary color is #00FF00. For a calmer look, try the analogous colors #8000FF and #FF0080, or one of the palettes above, which all include magenta.

Is text readable on magenta?

Dark text is the better choice, with a contrast ratio of 6.7:1. That passes WCAG AA for normal text.

What is the difference between magenta and fuchsia?

On screens they're the same: CSS defines both magenta and fuchsia as #FF00FF. In paints and crayons, fuchsia is usually a softer purple-pink, which is why our fuchsia page uses #C154C1.