Magenta — #FF00FF

The hex code for magenta is #FF00FF — rgb(255, 0, 255), hsl(300, 100%, 50%). Use it in CSS as color: #FF00FF;.

Magenta is a vivid purplish-red — halfway between red and blue. It is one of the brightest colors a screen can show and impossible to ignore.

Magenta color codes — click to copy

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

Shades, tints & tones of magenta

Click any swatch to copy it.

Shades — mix with black
Tints — mix with white
Tones — mix with gray

Magenta harmonies

Click a swatch to copy it.

Complementary
Analogous
Triadic
Split Complementary
Tetradic
Square
Monochromatic

Colors that go with magenta

ColorHex
Black#000000
Cyan#00FFFF
White#FFFFFF
Yellow#FFFF00

Where magenta is used

Use magenta as a bold accent for fashion, music, and youth brands. It pairs with black, white, and cyan for a striking, electric look. Avoid magenta for body text — it is tiring to read.

What magenta is often associated with: Boldness, energy, creativity, and youth.

Contrast — can you read text on magenta?

White text on magenta scores 3.14:1

Normal text: AA Fail   AAA Fail

Large text (18pt+, or 14pt bold+): AA Pass   AAA Fail

Black text scores 6.70:1

Normal text: AA Pass   AAA Fail

Large text (18pt+, or 14pt bold+): AA Pass   AAA Pass

Check any pair in the contrast checker →

How magenta looks with color blindness

Simulated with the Machado matrices. Click a swatch to copy the simulated color.

Protanopia

#918EC1

Deuteranopia

#9FB2B2

Tritanopia

#F29186

This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.

Frequently asked questions

What is the hex code for magenta?

The hex code for magenta is #FF00FF.

What is the RGB of magenta?

The RGB of magenta is rgb(255, 0, 255).

What colors go with magenta?

Colors that go well with magenta include black (#000000), cyan (#00FFFF), white (#FFFFFF). See the pairings table on this page for the full list.

Is magenta a good color for a website?

Magenta works well as an accent or background — black text on it scores 6.70:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.

What does the color magenta mean?

Boldness, energy, creativity, and youth.

Related tools

Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker