#4817b7 Color
Color Codes | |
---|---|
Hex Code | #4817b7 |
RGB Code | rgb(72, 23, 183) |
HSL Code | hsl(258, 78%, 40%) |
#4817b7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(72, 23, 183); }
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(258, 78%, 40%); }
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 #4817b7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(72, 23, 183, 10%) | #4817b71a | |
rgb(72, 23, 183, 20%) | #4817b733 | |
rgb(72, 23, 183, 40%) | #4817b74C | |
rgb(72, 23, 183, 60%) | #4817b799 | |
rgb(72, 23, 183, 80%) | #4817b7CC | |
rgb(72, 23, 183, 100%) | #4817b7FF |
Saturated and desaturated colors of #4817b7
HSL Code | Preview |
---|---|
hsl(258, 10%, 40%) | |
hsl(258, 20%, 40%) | |
hsl(258, 40%, 40%) | |
hsl(258, 60%, 40%) | |
hsl(258, 80%, 40%) | |
hsl(258, 100%, 40%) |
#4817b7 Color Usage In CSS
body { color: #4817b7; } p { color: rgb(72, 23, 183); } header { border-bottom:1px solid #4817b7; }