#780ac7 Color
Color Codes | |
---|---|
Hex Code | #780ac7 |
RGB Code | rgb(120, 10, 199) |
HSL Code | hsl(275, 90%, 41%) |
#780ac7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(120, 10, 199); }
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(275, 90%, 41%); }
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 #780ac7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(120, 10, 199, 10%) | #780ac71a | |
rgb(120, 10, 199, 20%) | #780ac733 | |
rgb(120, 10, 199, 40%) | #780ac74C | |
rgb(120, 10, 199, 60%) | #780ac799 | |
rgb(120, 10, 199, 80%) | #780ac7CC | |
rgb(120, 10, 199, 100%) | #780ac7FF |
Saturated and desaturated colors of #780ac7
HSL Code | Preview |
---|---|
hsl(275, 10%, 41%) | |
hsl(275, 20%, 41%) | |
hsl(275, 40%, 41%) | |
hsl(275, 60%, 41%) | |
hsl(275, 80%, 41%) | |
hsl(275, 100%, 41%) |
#780ac7 Color Usage In CSS
body { color: #780ac7; } p { color: rgb(120, 10, 199); } header { border-bottom:1px solid #780ac7; }