#4f2eb2 Color
Color Codes | |
---|---|
Hex Code | #4f2eb2 |
RGB Code | rgb(79, 46, 178) |
HSL Code | hsl(255, 59%, 44%) |
#4f2eb2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(79, 46, 178); }
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(255, 59%, 44%); }
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 #4f2eb2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(79, 46, 178, 10%) | #4f2eb21a | |
rgb(79, 46, 178, 20%) | #4f2eb233 | |
rgb(79, 46, 178, 40%) | #4f2eb24C | |
rgb(79, 46, 178, 60%) | #4f2eb299 | |
rgb(79, 46, 178, 80%) | #4f2eb2CC | |
rgb(79, 46, 178, 100%) | #4f2eb2FF |
Saturated and desaturated colors of #4f2eb2
HSL Code | Preview |
---|---|
hsl(255, 10%, 44%) | |
hsl(255, 20%, 44%) | |
hsl(255, 40%, 44%) | |
hsl(255, 60%, 44%) | |
hsl(255, 80%, 44%) | |
hsl(255, 100%, 44%) |
#4f2eb2 Color Usage In CSS
body { color: #4f2eb2; } p { color: rgb(79, 46, 178); } header { border-bottom:1px solid #4f2eb2; }