AfoliOpen Afoli →

Magenta color #FF00FF

Magenta is one of the CSS named colors (keyword magenta) with the hex code #FF00FF — RGB 255, 0, 255, HSL 300°, 100%, 50%.

Open in Afoli Colour tools →

#FF00FFMagenta

Color codes

HEX
#FF00FF
RGB
rgb(255, 0, 255)
HSL
hsl(300, 100%, 50%)
CMYK
0%, 100%, 0%, 0%
OKLCH
oklch(70.2% 0.322 328.4)
CSS keyword
magenta

Tints and shades

#FFEFFE#FFC3FC#FF8FFC#FF40FE#E300E3#BD00BD#990099#760076#550055#360036#1A001A

Color harmonies

Complementary
#FF00FF#00BF4F
Analogous
#AF81FF#FF00FF#FF579D
Triadic
#FF00FF#C49800#00B3C6
Split complementary
#FF00FF#96AC00#00B89F
Tetradic
#FF00FF#E98000#00BF4F#00AAF4

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Magenta text on white3.14 : 156AA for large text only
Magenta text on black6.70 : 1-46AA — body text
White text on Magenta3.14 : 1-61AA for large text only
Black text on Magenta6.70 : 148AA — body text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Frequently asked questions

What is the hex code of Magenta?

Magenta has the hex code #FF00FF, which is RGB 255, 0, 255 and HSL 300°, 100%, 50%.

Which text color reads best on Magenta?

Black text: contrast 6.70 : 1 (white text: 3.14 : 1).

Which colors go well with Magenta?

Its complementary color is #00BF4F; analogous colors are #AF81FF and #FF579D; a triadic set adds #C49800 and #00B3C6.

Similar colors

Sources and licences

Updated November 21, 2026