#7d22d5 Color
Color Codes | |
---|---|
Hex Code | #7d22d5 |
RGB Code | rgb(125, 34, 213) |
HSL Code | hsl(271, 72%, 48%) |
#7d22d5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(125, 34, 213); }
R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.
hsl()
hsl(hue saturation lightness); hsl(hue saturation lightness / alpha); div { background-color: hsl(271, 72%, 48%); }
Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.
Lighter and darker colors of #7d22d5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(125, 34, 213, 10%) | #7d22d51a | |
rgb(125, 34, 213, 20%) | #7d22d533 | |
rgb(125, 34, 213, 40%) | #7d22d54C | |
rgb(125, 34, 213, 60%) | #7d22d599 | |
rgb(125, 34, 213, 80%) | #7d22d5CC | |
rgb(125, 34, 213, 100%) | #7d22d5FF |
Saturated and desaturated colors of #7d22d5
HSL Code | Preview |
---|---|
hsl(271, 10%, 48%) | |
hsl(271, 20%, 48%) | |
hsl(271, 40%, 48%) | |
hsl(271, 60%, 48%) | |
hsl(271, 80%, 48%) | |
hsl(271, 100%, 48%) |
#7d22d5 Color Usage In CSS
body { color: #7d22d5; } p { color: rgb(125, 34, 213); } header { border-bottom:1px solid #7d22d5; }