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
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
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
format | code |
---|---|
hex | #7d2181 |
rgb | rgb(125,33,129) |
hsl | hsl(298,60%,32%) |
cmyk | cmyk(4, 75, 0, 50) |
hsv | hsv(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.
Triadic scheme of the color purple
The triadic scheme is obtained from 3 colors equally spaced from each other within the color wheel
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.
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.
Tints of the color purple
Tints are obtained from the base color purple up to reaching white, finding in between shades of pastel colors.
Shades of the color purple
These shades are obtained from the base color purple up to reaching black.
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.
Contrast ratio test of the color purple as a background
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 ;}