# Magenta Color Code: #FF00FF Hex, RGB & Palettes

The CSS magenta reference is #FF00FF, rgb(255, 0, 255), or hsl(300, 100%, 50%). Brand shades may differ. HEX and RGB encode the same sRGB reference; HSL is rounded to two decimals. These are screen values, not a CMYK print specification.

## Tints and shades

Illustrative mixes with white or black in encoded sRGB channels, not a perceptually uniform scale.

| Shade | HEX | RGB | HSL | Black text contrast | White text contrast |
| --- | --- | --- | --- | --- | --- |
| Tint 80% | #FFCCFF | rgb(255, 204, 255) | hsl(300, 100%, 90%) | 15.33:1 | 1.37:1 |
| Tint 40% | #FF66FF | rgb(255, 102, 255) | hsl(300, 100%, 70%) | 8.60:1 | 2.44:1 |
| Reference | #FF00FF | rgb(255, 0, 255) | hsl(300, 100%, 50%) | 6.70:1 | 3.14:1 |
| Shade 25% | #BF00BF | rgb(191, 0, 191) | hsl(300, 100%, 37.45%) | 3.97:1 | 5.29:1 |
| Shade 50% | #800080 | rgb(128, 0, 128) | hsl(300, 100%, 25.1%) | 2.23:1 | 9.42:1 |

## Text contrast

AA ordinary text requires at least 4.5:1; large text requires at least 3:1. Large text is at least 18pt, or 14pt bold. Use unrounded ratios for decisions. Color pairs alone cannot certify accessibility; review criteria, states, context, and exceptions.

CSS magenta and fuchsia share #FF00FF. Saturation does not guarantee sufficient contrast for white labels.

## How to use magenta in product design

Magenta is a saturated accent that can separate one series or category from a neutral interface. Limit its area when the product already contains competing alerts and calls to action.

### A UI example to try

Use magenta for an annotated chart series with a direct name and distinguishable marker. A selected series also needs an explicit selection state in the legend.

### Work through a real screen

Try magenta as a limited highlight in a neutral interface. Inspect its effect beside links, primary actions, and error messages so it does not compete with every other signal. In data visualization, test the exact series colors and provide readable labels rather than assuming a saturated hue is always distinguishable.

### Compare nearby colors by purpose

Compare magenta with purple and pink at the actual rendered size. A chart line, a badge, and a large background need different judgments. Keep decorative emphasis separate from semantic status roles unless the product has an explicit convention.

1. Choose a foreground, surface, accent, or status role and name a semantic token after its purpose.
2. Test the actual pair, text size, interaction states, and themes.
3. Document the approved value and companion colors. Keep labels and non-color cues for states.

## CSS palette

Illustrative numeric tokens; connect tested pairs to semantic roles.

```css
:root {
  --magenta-100: #FFCCFF;
  --magenta-300: #FF66FF;
  --magenta-500: #FF00FF;
  --magenta-700: #BF00BF;
  --magenta-900: #800080;
}
```

## What is the HEX code for magenta?

The CSS named color magenta is #FF00FF. Use a documented brand token when you mean another shade.

## Is magenta accessible?

A color alone cannot pass or fail accessibility. Evaluate the pair, content size, interaction state, and meaning in the complete interface.

## Related colors

- [pink color codes](https://designproject.io/resources/colors/pink/)

- [purple color codes](https://designproject.io/resources/colors/purple/)

- [red color codes](https://designproject.io/resources/colors/red/)

## Sources and next steps

By The Design Project. UI examples and generated scales are illustrative.

- [MDN CSS named colors](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/named-color)
- [W3C contrast guidance](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html)
- [UI color palette guide](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Semantic color tokens](https://designproject.io/resources/guides/create-semantic-color-tokens/)
- [Color contrast checker](https://designproject.io/resources/guides/check-color-contrast/)
- [Design glossary](https://designproject.io/resources/glossary/)

Canonical: https://designproject.io/resources/colors/magenta/

## Keep learning

- [How to create a UI color palette, step by step](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Product design glossary: 44 terms explained](https://designproject.io/resources/glossary/)
- [How to create semantic color tokens for UI](https://designproject.io/resources/guides/create-semantic-color-tokens/)
