#4c0fc7 Color
Color Codes | |
---|---|
Hex Code | #4c0fc7 |
RGB Code | rgb(76, 15, 199) |
HSL Code | hsl(260, 86%, 42%) |
#4c0fc7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(76, 15, 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(260, 86%, 42%); }
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 #4c0fc7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(76, 15, 199, 10%) | #4c0fc71a | |
rgb(76, 15, 199, 20%) | #4c0fc733 | |
rgb(76, 15, 199, 40%) | #4c0fc74C | |
rgb(76, 15, 199, 60%) | #4c0fc799 | |
rgb(76, 15, 199, 80%) | #4c0fc7CC | |
rgb(76, 15, 199, 100%) | #4c0fc7FF |
Saturated and desaturated colors of #4c0fc7
HSL Code | Preview |
---|---|
hsl(260, 10%, 42%) | |
hsl(260, 20%, 42%) | |
hsl(260, 40%, 42%) | |
hsl(260, 60%, 42%) | |
hsl(260, 80%, 42%) | |
hsl(260, 100%, 42%) |
#4c0fc7 Color Usage In CSS
body { color: #4c0fc7; } p { color: rgb(76, 15, 199); } header { border-bottom:1px solid #4c0fc7; }