Magenta hex and RGB values
The CSS keyword magenta gives you #FF00FF, or rgb(255, 0, 255). fuchsia is another CSS name for the same value.
Magenta makes a strong accent for a headline or feature panel. CSS fuchsia uses the same value, though a brand may use either name for a different shade.
Compare black and white text
| Text / background | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| #000000 / #FF00FF | 6.70:1 | Pass | Pass | Fail | Pass |
| #FFFFFF / #FF00FF | 3.14:1 | Fail | Pass | Fail | Fail |
Black text has the higher contrast on magenta: 6.70:1. The table compares both options against all four text thresholds, using the unrounded values for pass or fail.
Try magenta in a layout
The CSS sample below uses black text on #FF00FF. Preview a 16 px label and a 24 px heading to compare normal and large text. Swap the colors to try magenta as the text color; the ratio stays the same.
.sample {
background: #FF00FF;
color: #000000;
}Copy the exact color
Use the converter to copy HEX, RGB or HSL. If you edit in HSL, the final value is rounded to eight-bit sRGB so the preview and exported color agree. For text over an image, gradient or translucent layer, check the finished design separately.