#7c70fe Color
Color Codes | |
---|---|
Hex Code | #7c70fe |
RGB Code | rgb(124, 112, 254) |
HSL Code | hsl(245, 99%, 72%) |
#7c70fe Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(124, 112, 254); }
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(245, 99%, 72%); }
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 #7c70fe
RGB Code | Hex Code | Preview |
---|---|---|
rgb(124, 112, 254, 10%) | #7c70fe1a | |
rgb(124, 112, 254, 20%) | #7c70fe33 | |
rgb(124, 112, 254, 40%) | #7c70fe4C | |
rgb(124, 112, 254, 60%) | #7c70fe99 | |
rgb(124, 112, 254, 80%) | #7c70feCC | |
rgb(124, 112, 254, 100%) | #7c70feFF |
Saturated and desaturated colors of #7c70fe
HSL Code | Preview |
---|---|
hsl(245, 10%, 72%) | |
hsl(245, 20%, 72%) | |
hsl(245, 40%, 72%) | |
hsl(245, 60%, 72%) | |
hsl(245, 80%, 72%) | |
hsl(245, 100%, 72%) |
#7c70fe Color Usage In CSS
body { color: #7c70fe; } p { color: rgb(124, 112, 254); } header { border-bottom:1px solid #7c70fe; }