Magenta — #FF00FF
One of the 148 named colours defined by CSS — this page is its complete working profile: every format, WCAG contrast, a 50–950 shade scale and computed harmonies, all copy-ready.
Magenta values in every format
| CSS name | magenta |
|---|---|
| HEX | #FF00FF |
| RGB | rgb(255, 0, 255) |
| RGB % | 100%, 0%, 100% |
| HSL | hsl(300, 100%, 50%) |
| HSV / HSB | 300°, 100%, 100% |
| CMYK (print) | 0%, 100%, 0%, 0% |
| Relative luminance | 0.285 |
| Contrast on black | 6.70 : 1 |
| Contrast on white | 3.14 : 1 |
| Best text colour on it | Black (6.70 : 1 — passes WCAG AA for normal text) |
Named colours are defined in the CSS Color Module (W3C). Values on this page were computed with the same colour maths as Loona's Colour Converter and checked 9 November 2026.
Shades of Magenta (50–950)
50 #FFF0FF100 #FFDBFF200 #FFADFF300 #FF70FF400 #FF29FF500 #EB00EB600 #BD00BD700 #940094800 #700070900 #4C004C950 #2E002E
The scale keeps Magenta's hue (300°) and saturation (100%) and steps lightness — the same method as the Colour Shades Generator, so these steps drop straight into a design system.
Colour harmonies with Magenta
Complementary: #FF00FF#00FF00
Analogous: #7F00FF#FF00FF#FF0080
Triadic: #FF00FF#FFFF00#00FFFF
Split-complementary: #FF00FF#80FF00#00FF80
Square: #FF00FF#FF8000#00FF00#007FFF
Computed by rotating the hue wheel from 300°. Try them live in the Colour Harmony Generator.
Closest named colours
fuchsia (#FF00FF) · deeppink (#FF1493) · darkviolet (#9400D3)
Same-value alias: fuchsia — an identical #FF00FF under another CSS name (this page uses the primary spelling; British “grey” spellings duplicate the “gray” values and are covered on those pages).
Using Magenta well
Magenta sits in the magenta / pink family at 50% lightness — a mid-tone, vivid, cool colour. As a background it pairs best with black text (6.70:1 contrast). Its complement (#00FF00) is the high-energy partner for calls-to-action and highlights; the analogous neighbours (#7F00FF, #FF0080) give calm, same-family gradients. For print, start from the CMYK values above and proof — screen Magenta is an sRGB colour and rich screens shades can shift on press.
Popular Design Tools
Frequently Asked Questions
What is the hex code for Magenta?
#FF00FF — the CSS named colour “magenta”. Its RGB is (255, 0, 255).
Is Magenta good for text or backgrounds?
As a background, black text reads best on it (6.70:1). As text itself on white it reaches 3.14:1 — not enough for body text at AA; use it for headings, large text or accents.
What colours go with Magenta?
Its complement #00FF00 for contrast, analogous #7F00FF and #FF0080 for calm combinations, and the 50–950 shade scale above for monochrome designs.
What is Magenta in CMYK for printing?
C0 M100 Y0 K0. CMYK conversions of screen colours are a starting point — always proof before a print run.