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
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is magenta accessible? Contrast with white and black
3.13:1
AA fail AA large pass AAA fail
6.69:1
AA pass AA large pass AAA fail
- As a background, magenta works best with black text.
- For body text on white, use the darker variant (the closest color that passes AA, 4.5:1).
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.
#007fff Red-blind. Reds look dark and brownish; red and green are easily confused.
#689bfa Green-blind, the most common strong form. Red, green, orange and brown look similar.
#ff4a97 Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#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).
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.