Skip to content

Magenta

Magenta is a medium, vivid color from the purple family. Hex code #FF00FF.

Magenta#FF00FF

Color codes

  • CSS namemagenta, fuchsia
  • HEX#FF00FF
  • RGBrgb(255 0 255)
  • HSLhsl(300 100% 50%)
  • HSB / HSVhsb(300, 100%, 100%)
  • OKLCHoklch(70.2% 0.322 328.4)
  • CMYKcmyk(0%, 100%, 0%, 0%)

White text

3.13:1 · passes WCAG AA for large text only

Black text

6.69:1 · passes WCAG AA

Shades

50#FEEBFD
100#FEBAFA
200#FE7FFB
300#F433F3
400#CD21CD
500#A905A9
600#810981
700#5E015E
800#3C013B

Complementary

#FF00FF
#24BD55

Analogous

#FF00FF
#AE83FA
#F7629E

Triadic

#FF00FF
#C29916
#29B2C4

About this color

Magenta in CSS and design

Magenta is a medium, vivid color from the purple family. Magenta is one of the extended color keywords CSS adopted from the X11 color names. Its other name, fuchsia, is one of the 16 basic color keywords from HTML 4.

Magenta and fuchsia are two names for the same color in CSS: both mean #FF00FF.

Use it in CSS by name or by any of its codes; these all give the same color:

color: magenta;
color: #FF00FF;
color: rgb(255 0 255);
color: hsl(300 100% 50%);

For text on magenta, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for magenta?

#FF00FF. In CSS you can also use the keyword magenta or fuchsia, which works in every browser.

What is magenta in RGB and HSL?

In RGB it is rgb(255 0 255), in HSL hsl(300 100% 50%). For print, cmyk(0%, 100%, 0%, 0%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on magenta?

Black text works better: it has a contrast ratio of 6.69:1 and passes WCAG AA. White text reaches 3.13:1.

Which colors go with magenta?

Its complementary color is #24BD55, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #AE83FA and #F7629E. The palette generator builds more combinations.