Magenta Color

HEX #FF00FF · rgb(255, 0, 255) · hsl(300, 100%, 50%)

Magenta color codes

Magenta is one of the named colors every browser understands. In CSS you can write it as magenta or #FF00FF. The keyword "fuchsia" is an exact synonym.

FormatValue
HEX#FF00FF
RGBrgb(255, 0, 255)
HSLhsl(300, 100%, 50%)
CMYK0%, 100%, 0%, 0%
CSS namemagenta
.example {
  color: magenta;
  background-color: #FF00FF;
  border-color: rgb(255, 0, 255);
}

Colors that go with magenta

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#00FF00Complementary
Lime
#8000FFAnalogous
#FF0080Analogous
#FFFF00Triadic
Yellow
#00FFFFTriadic
Cyan

Tints and shades of magenta

Tints mix the color with white; shades mix it with black.

#FFE6FF90% white
#FFBFFF75% white
#FF99FF60% white
#FF73FF45% white
#FF4DFF30% white
#FF26FF15% white
#FF00FFBase
Magenta
#D900D915% black
#B300B330% black
#8C008C45% black
#66006660% black
#40004075% black
#1A001A90% black

Contrast and readability

Black text
6.70:1
passes AA
White text
3.14:1
large text only

Use black text on magenta. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for magenta?

The hex code for magenta is #FF00FF.

What is the RGB value of magenta?

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

What color goes with magenta?

Its complementary color is #00FF00, which is closest to the named color lime. Analogous and triadic matches are listed on this page.

Should text on magenta be black or white?

Use black text. The contrast ratio is 6.70:1 with black and 3.14:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.