Home / Colors / Magenta hex code

Magenta hex code

Pure magenta: red and blue at full strength with no green.

#FF00FF Magenta
HEX#FF00FF
RGBrgb(255, 0, 255)
HSLhsl(300, 100%, 50%)
HSVhsv(300, 100%, 100%)
CMYKcmyk(0%, 100%, 0%, 0%)
Advertisement

About magenta

Pure magenta: red and blue at full strength with no green. CSS also calls it fuchsia. Its hex code is #FF00FF, which is rgb(255, 0, 255): 255 red, 0 green and 255 blue on a scale of 0 to 255.

Magenta sits between warm and cool, so it can lean either way depending on what it's paired with.

Magenta tints and shades

Lighter tints (mixed with white) and darker shades (mixed with black) of magenta. Click any of them to copy its hex code.

Colors that go with magenta

Complementary

The opposite color on the color wheel, for strong contrast.

Analogous

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

Triadic

Three colors evenly spaced around the wheel, for a balanced, lively palette.

Split complementary

The two colors either side of the complement: contrast without clashing.

Text on magenta

White text

3.13:1 · Large text only (AA)

Black text

6.69:1 · Passes AA for all text

For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on magenta. Test other combinations with the contrast checker.

Using magenta in CSS

.element {
  color: #FF00FF;
  background-color: rgb(255 0 255);
  border-color: hsl(300 100% 50%);
}
Advertisement

Frequently asked questions

What is the hex code for magenta?

Magenta is #FF00FF. In RGB it's rgb(255, 0, 255), and in HSL it's hsl(300, 100%, 50%).

What colors go with magenta?

Its complementary color is #00FF00, which gives strong contrast. For a softer look, use analogous colors #7F00FF and #FF0080. Magenta also pairs well with white.

Is magenta warm or cool?

Magenta sits between warm and cool, so it can lean either way depending on what it's paired with.

Should I use white or black text on magenta?

Use black text. Its contrast ratio on magenta is 6.69:1, versus 3.13:1 for white.

Similar colors

See all popular colors · All HTML color names · Open magenta in the color picker

Advertisement