Magenta color (#FF00FF)
#FF00FF (Fuchsia) is a vivid pink colour. It is rgb(255, 0, 255) in RGB and hsl(300, 100%, 50%) in HSL. Text in black reads better on it: the contrast is 6.70:1 against black and 3.14:1 against white.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#FF00FF}:\quad R=\mathrm{FF}_{16}=255,\ G=\mathrm{00}_{16}=0,\ B=\mathrm{FF}_{16}=255 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
300^\circ + 180^\circ = 120^\circ ;\Rightarrow; \mathrm{#00FF00} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#FF00FF} = \mathrm{rgb}(255, 0, 255) \]
\[ \mathrm{#FF00FF}:\quad R=\mathrm{FF}_{16}=255,\ G=\mathrm{00}_{16}=0,\ B=\mathrm{FF}_{16}=255 \]
\[ H=300^\circ,\quad S=100\%,\quad L=50\% \]
\[ 300^\circ + 180^\circ = 120^\circ ;\Rightarrow; \mathrm{#00FF00} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 3.14:1\ \text{(on white)} \]Magenta in every colour format
| Format | Value |
|---|---|
| HEX | #FF00FF |
| RGB | rgb(255, 0, 255) |
| RGB (percent) | rgb(100.0%, 0.0%, 100.0%) |
| HSL | hsl(300, 100%, 50%) |
| HSV / HSB | hsv(300, 100%, 100%) |
| CMYK | cmyk(0%, 100%, 0%, 0%) |
| Decimal | 16711935 |
| Description | vivid pink |
| CSS name | fuchsia |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 3.14:1 | fail | pass | fail | fail |
| Black text | 6.70:1 | pass | pass | fail | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #2A002A #550055 #800080 #AA00AA #D500D5 |
| This colour | #FF00FF |
| Tints (mixed with white) | #FF2BFF #FF55FF #FF80FF #FFAAFF #FFD5FF |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #007FFF | 80 |
| Deuteranopia | #689BFA | 88 |
| Tritanopia | #FF4A97 | 64 |
| Grayscale | #919191 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dark violet | #9400D3 |
| Blue violet | #8A2BE2 |
| Dark orchid | #9932CC |
| Medium orchid | #BA55D3 |
Questions
What is the RGB value of #FF00FF?
rgb(255, 0, 255): red 255, green 0, blue 255.
What is the HSL value of #FF00FF?
hsl(300, 100%, 50%): a hue of 300°, 100% saturation and 50% lightness.
What is the complementary colour of #FF00FF?
#00FF00, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #00FF00.
Should I use white or black text on #FF00FF?
Black. White gives 3.14:1 and black 6.70:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #FF00FF?
cmyk(0%, 100%, 0%, 0%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #FF00FF a named colour?
Yes: it is the CSS colour name "fuchsia".