One of the base colors of CMYK printing. It was named after the Battle of Magenta in Italy, fought the same year the dye was created. On screen it's red and blue light at full strength.
Magenta (#FF00FF) is a balanced, mid-tone, highly saturated color. It belongs to the pinks family. It mixes 255 red, 0 green and 255 blue (out of 255). It is mostly used in print, graphic design, web.
From lightest to darkest. Tap a shade to copy its code.
Combinations based on the color wheel. More in the color harmony tool.
Copy the codes or open a palette in the editor to tweak it.
Based on WCAG 2.1 guidelines. Test other pairs in the contrast checker.
:root {
--magenta: #FF00FF;
--magenta-rgb: 255, 0, 255;
}
.bg { background-color: var(--magenta); }
.text { color: var(--magenta); }The hex code for magenta is #FF00FF. In RGB it is rgb(255, 0, 255), in HSL hsl(300, 100%, 50%) and in CMYK 0, 100, 0, 0.
Its complement on the color wheel is #00FF00, close to neon green. Used in small doses, it works as an accent and adds strong contrast.
Use black text instead: the contrast with white is only 3.1:1, while with black it is 6.7:1.