Magenta has no wavelength of its own — the eye reports it when the red and blue cones fire together without the green, which is why it sits directly opposite green on the colour wheel. Copy the HEX codes from any scheme below, or generate a harmonious magenta palette anchored to your own base colour.
Magenta Palette Ideas & HEX Codes
Bright Magenta is one hue held at 306°–309° through five lightness steps, which is the cleanest structure of the three. Magenta & Pink extends the light end to #F8A8E8. Deep Magenta is the darkest, starting at #2E0526 for a near-black.
Bright Magenta
#4A0E42
#7A1670
#A81E97
#C724B1
#E85BD3
Magenta & Pink
#6B0F5C
#9B1C87
#C724B1
#E85BD3
#F8A8E8
Deep Magenta
#2E0526
#560A48
#8E116F
#C724B1
#DE64C8
Anchored to a magenta base — press Space or Generate to roll more schemes. Click a swatch to copy its HEX, lock one to keep it while the rest re-roll, then export as CSS, JSON or HEX.
Free, no sign-up Generated in your browser CSS, JSON & HEX export
Drag in the colour area or the hue bar, or type a HEX / RGB value, then build a scheme anchored to it.
What Goes With Magenta
Magenta is at maximum energy, so give it somewhere quiet to sit: a black or deep indigo ground, one neutral, and nothing else competing. Its complement is green, which is why magenta on emerald reads as deliberate rather than accidental. Beauty, music, nightlife and bold editorial use it; pink is the softer route to the same audience.
Frequently Asked Questions
What HEX codes make a magenta palette?
Magenta is a vivid pink-purple: anchor on a deep berry (#4A0E42, #2E0526), use a bright magenta (#C724B1) and lift with a soft pink tint (#E85BD3, #F8A8E8). The bold, saturated pink-purple is what gives magenta its electric, modern energy. Rather than mixing your own, take one of the three sets above: Bright Magenta, Magenta & Pink or Deep Magenta. Their outer limits are #2E0526 and #F8A8E8, a ratio of 10:1, enough for body text at any size under WCAG AA and AAA.
What is the HEX code for magenta?
#FF00FF — and CSS gives that one value two keyword names, magenta and fuchsia. It is the pure primary, equal red and blue at full strength. It is too intense to use flat, which is why the palettes here build around a deeper #C724B1 at 46% lightness instead.
How do I use these colours in CSS?
Click Copy CSS for a ready-to-paste :root block with each colour as a custom property (--color-1, --color-2 and so on), or copy a single HEX straight from any swatch above. If a ready-made set is easier, the Bright Magenta row above reads #4A0E42 through #E85BD3 and you can type those five in as the custom properties yourself. The generator instead rolls around #C724B1, the base magenta this page is anchored to. Copy JSON gives an array and Copy HEX a comma-separated line when a :root block is not what your project wants.
Which magenta shades are readable as text on white?
The deeper magenta shades work as body text on white and the pale ones do not. The base shade used here, #C724B1, gives 4.8:1 against #FFFFFF, past the 4.5:1 WCAG AA minimum for body text. The darkest code on this page, #2E0526, reaches 18:1 on white and clears WCAG AA for body text and AAA as well. The palest, #F8A8E8, sits at 1.7:1 and belongs behind text rather than in it, with something dark on top.