Magenta Color Code: Hex #FF00FF
The hex code for Magenta is #FF00FF (the CSS keyword magenta). Magenta RGB code: rgb(255, 0, 255). The xkcd color survey gives #C20078 instead, which looks clearly different; both codes are below with their source.
#FF00FFTop: the code browsers use#C20078Below: compare edge to edgeMagenta color codes: each Magenta hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- purple
- Contrast
- 3.14:1 with white, 6.70:1 with black
- CSS keyword
- magenta
- Also written
- fuchsia
- Character
- mid-tone, vivid
- Readable text on it
- black (AA)
Magenta is first recorded as a color name in English in 1860; its other name, fuchsia, comes from the fuchsia flower.
A mid-tone, vivid purple with a warm cast. In code, magenta gives exactly this web value. If you mean the color as people usually picture the name, the survey value #C20078 is closer: it is darker and more muted.
Black text reads best on it; white text works only for large headings. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Even pale tints keep its hue, which makes it easy to use for soft backgrounds. Next to Orchid, its closest named neighbour, it looks about as light, more vivid and warmer; beside Medium Orchid it looks lighter, more vivid and warmer. It is one of the 16 original HTML 4 color names. All three channels are multiples of 51, so it is in the old 216-color web-safe palette.
Colors that go with Magenta
Complementary: the opposite of Magenta
#FF00FFBlack text 6.70:1#00BF4FBlack text 8.57:1#FF9CFFBlack text 11.45:1#00752EWhite text 5.86:1
Analogous
#AF81FFBlack text 7.41:1#FF00FFBlack text 6.70:1#FF589DBlack text 7.13:1#FFB9FFBlack text 13.64:1
Triadic
#FF00FFBlack text 6.70:1#C49800Black text 7.84:1#00B3C6Black text 8.26:1#FFD4FFBlack text 16.11:1
Monochrome
#480048White text 15.34:1#9E009EWhite text 7.12:1#FF00FFBlack text 6.70:1#FF7CFFBlack text 9.58:1#FFB9FFBlack text 13.64:1
With neutrals
#FF00FFBlack text 6.70:1#FFD4FFBlack text 16.11:1#220022White text 19.25:1#A974A7Black text 5.74:1
Preview
Heading on Magenta
Body text on this color, 6.70:1.
ButtonHeading in Magenta
Text in this color on white, 3.14:1.
ButtonTints and shades
#FFD4FF#FFB9FF#FF9CFF#FF7CFF#FF56FF#FF00FF#CE00CE#9E009E#710071#480048#220022
WhiteMagentaBlack
Similar named colors
Where the name comes from
- Source: Simple English Wikipedia, “Magenta” (checked 3 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: