Skip to content

Magenta color #FF00FF

rgb(255, 0, 255) · oklch(70.2% 0.322 328.4)

Magenta (#FF00FF) is a medium, vivid, cool magenta, also written as “fuchsia” in CSS. It mixes 100% red, 0% green and 100% blue, with a perceived lightness of 70.2% in OKLCH. Black text reads best on it (6.69:1 vs 3.13:1). The closest other CSS color is Orchid (#DA70D6). For people with protanopia it shifts the most, toward #007FFF.

Magenta color codes

HEX
RGB
HSL
HSV / HSB
OKLCH
CMYK
CSS keyword

Click a value to copy it. Convert any other color with the color converter.

Shades, tints and tones of magenta

Shades mix magenta with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.

Tints (lighter)

Shades (darker)

Tones (muted)

Magenta as a UI color scale (50–950)

An 11-step scale for design systems, with magenta placed at step 400. Copy it as a Tailwind v4 theme below.

Colors that go with magenta

Harmonies are computed on the OKLCH hue wheel, keeping magenta’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.

Complementary

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is magenta accessible? Contrast with white and black

Magenta text on white

3.13:1

AA fail AA large pass AAA fail

Magenta text on black

6.69:1

AA pass AA large pass AAA fail

Check magenta against any other color

How magenta looks with color blindness

Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.

Protanopia: #007fff
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #689bfa
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #ff4a97
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #919191
Total color blindness, very rare. Only lightness differences are visible.

Colors similar to magenta

The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).

ΔE 14.1 Orchid
#da70d6
ΔE 14.8 Medium Orchid
#ba55d3
ΔE 14.9 Violet
#ee82ee
ΔE 16.3 Deep Pink
#ff1493

Use magenta in CSS and Tailwind

CSS custom properties

:root {
  --magenta: #ff00ff;
  --magenta-rgb: 255 0 255;
}

.text-magenta { color: var(--magenta); }
.bg-magenta { background-color: var(--magenta); }

Tailwind v4 theme

@theme {
  --color-magenta-50: #f8f6f7;
  --color-magenta-100: #f1eaf1;
  --color-magenta-200: #ecd1ea;
  --color-magenta-300: #eea3ea;
  --color-magenta-400: #ff00ff;
  --color-magenta-500: #d800d8;
  --color-magenta-600: #b400b4;
  --color-magenta-700: #8d178c;
  --color-magenta-800: #6b1e6a;
  --color-magenta-900: #501d4f;
  --color-magenta-950: #2e132d;
}

Make a gradient from magenta: open the gradient generator.

Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.

More magenta colors