HTML color codes for purple - hexadecimal + RGB

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

#7D2181

códigos del color purple

Complementary color of purple:

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

#258121

Monochromatic scheme of the color purple

#260024
#3d093c
#551257
#6f1c73
#8d3290
#ae52b0
#d071d1
#f291f3

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

HTML and CSS codes for the color purple

formatcode
hex#7d2181
rgbrgb(125,33,129)
hslhsl(298,60%,32%)
cmykcmyk(4, 75, 0, 50)
hsvhsv(298, 75%, 51%)

What is the purple color in RGB format?

The purple color in RGB format is composed of (125 in the red channel), (33 in the green channel), and (129 in the blue channel).

What is the purple color in CMYK format?

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

What is the composition of the purple color in HSL?

It is composed of (298°) hue, (60%) saturation, and (32%) lightness.

What is the purple color in HSV format?

The purple color in HSV format is composed of (298°) hue, (75%) saturation, and (51%) value.

Analogous scheme of the color purple

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

#7f2183
#832155
#4e2183

Triadic scheme of the color purple

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

#7d2181
#817d21
#21817d

Tetradic scheme of the color purple

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

#7d2181
#814d21
#258121
#215581

Split complementary scheme of the color purple

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

#7d2181
#813021
#218157

Tints of the color purple

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

#7d2181
#974d9a
#b17ab3
#cba6cd
#e5d3e6
#ffffff

Shades of the color purple

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

#7d2181
#641a67
#4b144d
#320d34
#19071a
#000000

Check the contrast of the color purple.

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

Change the text color.
Contrast ratio: 8.73

Contrast ratio test of the color purple as a background

Change the background color
Contrast ratio: 1.79

Contrast ratio test of the color purple as text.

How to implement the color purple in HTML and CSS

Here are examples of code to use the purple 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 purple in HTML - CSS.

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

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

To set the text color purple in HTML - CSS.

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

<p style="color:#7D2181;"> Color purple as the text color.</p>
p {
color:#7D2181 ;
}