Magenta Color #FF00FF
Magenta color codes
#FF00FFrgb(255, 0, 255)hsl(300, 100%, 50%)hsv(300, 100%, 100%)oklch(0.702 0.322 328.4)--magenta: #FF00FF;Black text is the readable choice on Magenta: 6.69:1.
About the name magenta
Takes its name from an aniline dye patented in 1859 and first called fuchsine, renamed after the French victory at the Battle of Magenta that year. (Wikipedia)
Magenta is a CSS named color: you can write magenta instead of #FF00FF in any stylesheet. The name has no single standard value; the value shown here is the most widely cited one.
| Process magenta (printing ink, sRGB approximation) | #FF0090 |
Magenta shades and tints
Click a swatch to copy it. The middle swatch is the base color; steps are even in OKLCH lightness.
Colors that go with magenta
Text contrast on magenta
Magenta color palettes
Magenta gradients
background: linear-gradient(135deg, #FFC2FB 0%, #FF00FF 100%);background: linear-gradient(90deg, #FF00FF 0%, #FF0080 100%);background: linear-gradient(135deg, #FF00FF 0%, #00FF00 100%);Magenta in CSS
:root {
--magenta: #FF00FF;
--magenta-rgb: 255, 0, 255;
}
.button {
background: var(--magenta);
color: #000000; /* 6.69:1 */
}Tailwind: bg-[#FF00FF] · text-[#FF00FF]
Colors similar to magenta
Frequently asked questions
What is the hex code for magenta?
Magenta is #FF00FF (the CSS color name magenta). In RGB it is rgb(255, 0, 255) and in HSL hsl(300, 100%, 50%). The name has no single standard value; other common values are listed above.
What colors go with magenta?
On the color wheel, magenta (#FF00FF) pairs with its complement #00FF00, its analogous colors #8000FF and #FF0080, and the triadic colors #FFFF00 and #00FFFF. Lighter tints and darker shades of magenta itself also make an easy monochromatic scheme.
What text color works on magenta?
Black text is the readable choice on Magenta: 6.69:1. Magenta text on white is 3.13:1 (fails WCAG AA for normal text) and on black 6.69:1 (passes).
What is the RGB value of magenta?
Magenta (#FF00FF) is red 255, green 0 and blue 255: rgb(255, 0, 255).
Sources
- W3C, CSS Color Module Level 4: named colors
- Wikipedia, Magenta (revision 1385787705); text adapted under CC BY-SA 4.0
- Cross-checked: Wikipedia 'List of colors: G–M' (rev 1382249612), entry 'Magenta'
- RGB, HSL, OKLCH, shades, harmonies and contrast are computed with SwatchNest's tested color library. Updated 2026-11-24