HTML color codes for magenta - hexadecimal + RGB

Discover all HTML codes for the color magenta - hexadecimal, rgb, hsl, hsv, and cmyk, as well as different combinations, schemes, temperatures, hues, and types of magenta color.

#ff00ff

códigos del color magenta

Complementary color of magenta:

The complementary color of a color is the opposite of it on the color wheel (chromatic circle)

#00ff00

Monochromatic scheme of the color magenta

#86008f
#a700ae
#c900ce
#ed00ee
#ff3dff
#ff6dff
#ff90ff
#ffafff

This scheme is based on the color magenta and is composed of different hues, tones, and shades, both dark and light.

HTML and CSS codes for the color magenta

formatcode
hex#ff00ff
rgbrgb(255,0,255)
hslhsl(300,100%,50%)
cmykcmyk(0, 100, 0, 0)
hsvhsv(300, 100%, 100%)

What is the magenta color in RGB format?

The magenta color in RGB format is composed of (255 in the red channel), (0 in the green channel), and (255 in the blue channel).

What is the magenta color in CMYK format?

It is composed of (0%) cyan, (100%) magenta, (0%) yellow, and (0%) black / key.

What is the composition of the magenta color in HSL?

It is composed of (300°) hue, (100%) saturation, and (50%) lightness.

What is the magenta color in HSV format?

The magenta color in HSV format is composed of (300°) hue, (100%) saturation, and (100%) value.

Analogous scheme of the color magenta

Analogous colors are obtained from the two closest colors within the color wheel.

#ff00ff
#ff0080
#7f00ff

Triadic scheme of the color magenta

The triadic scheme is obtained from 3 colors equally spaced from each other within the color wheel

#ff00ff
#ffff00
#00ffff

Tetradic scheme of the color magenta

This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.

#ff00ff
#ff8000
#00ff00
#007fff

Split complementary scheme of the color magenta

This color scheme is obtained by using two pairs of opposing colors on the color wheel in a rectangular shape.

#ff00ff
#ff3300
#00ff99

Tints of the color magenta

Tints are obtained from the base color magenta up to reaching white, finding in between shades of pastel colors.

#ff00ff
#ff33ff
#ff66ff
#ff99ff
#ffccff
#ffffff

Shades of the color magenta

These shades are obtained from the base color magenta up to reaching black.

#ff00ff
#cc00cc
#990099
#660066
#330033
#000000

Check the contrast of the color magenta.

You can now validate the contrast relationship of the color magenta, whether using it as a background color or as a text color.

Change the text color.
Contrast ratio: 3.14

Contrast ratio test of the color magenta as a background

Change the background color
Contrast ratio: 4.98

Contrast ratio test of the color magenta as text.

How to implement the color magenta in HTML and CSS

Here are examples of code to use the magenta on your web page. Remember that you can implement the color in HTML using color codes such as hexadecimal, RGB, or HSL, and also directly with the color name written in English (as long as it is natively supported by HTML).

Background color magenta in HTML - CSS.

To set the background color, you can use inline styles or apply them in a CSS stylesheet

<div style="background:#ff00ff;"> Color magenta as the background of a div.</div>
/* Color magenta as the background of the body tag with CSS. */
body {
background: #ff00ff;
}

To set the text color magenta in HTML - CSS.

To set the text color, you can use inline styles or apply them in a CSS stylesheet.

<p style="color:#ff00ff;"> Color magenta as the text color.</p>
p {
color:#ff00ff ;
}