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.
| Format | Value | |
|---|---|---|
| HEX | #FF00FF | |
| RGB | rgb(255, 0, 255) | |
| HSL | hsl(300, 100%, 50%) | |
| CMYK | 0%, 100%, 0%, 0% | |
| CSS name | magenta |
.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.
Tints and shades of magenta
Tints mix the color with white; shades mix it with black.
Magenta
Contrast and readability
6.70:1
passes AA
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.