EN

Magenta Color #FF00FF

Magenta · #FF00FF

Magenta color codes

HEX#FF00FF
RGBrgb(255, 0, 255)
HSLhsl(300, 100%, 50%)
HSVhsv(300, 100%, 100%)
OKLCHoklch(0.702 0.322 328.4)
CSS--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.

Other common values for this name
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

Complementary#00FF00What are complementary colors?
Analogous#8000FF · #FF0080What are analogous colors?
Split complementary#80FF00 · #00FF80What are split complementary colors?
Triadic#FFFF00 · #00FFFFWhat are triadic colors?

Text contrast on magenta

Aa MagentaOn white: 3.13:1AA Fail
Aa MagentaOn black: 6.69:1AA Pass
Aa Black text6.69:1AA Pass

Check other pairs in the contrast checker

Magenta color palettes

Complementary palette
Analogous palette
Monochromatic palette
Triadic palette

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

All shades of pink →

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