#4c3ef2 Color
Color Codes | |
---|---|
Hex Code | #4c3ef2 |
RGB Code | rgb(76, 62, 242) |
HSL Code | hsl(245, 87%, 60%) |
#4c3ef2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(76, 62, 242); }
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, 87%, 60%); }
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 #4c3ef2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(76, 62, 242, 10%) | #4c3ef21a | |
rgb(76, 62, 242, 20%) | #4c3ef233 | |
rgb(76, 62, 242, 40%) | #4c3ef24C | |
rgb(76, 62, 242, 60%) | #4c3ef299 | |
rgb(76, 62, 242, 80%) | #4c3ef2CC | |
rgb(76, 62, 242, 100%) | #4c3ef2FF |
Saturated and desaturated colors of #4c3ef2
HSL Code | Preview |
---|---|
hsl(245, 10%, 60%) | |
hsl(245, 20%, 60%) | |
hsl(245, 40%, 60%) | |
hsl(245, 60%, 60%) | |
hsl(245, 80%, 60%) | |
hsl(245, 100%, 60%) |
#4c3ef2 Color Usage In CSS
body { color: #4c3ef2; } p { color: rgb(76, 62, 242); } header { border-bottom:1px solid #4c3ef2; }