#5222ff Color
Color Codes | |
---|---|
Hex Code | #5222ff |
RGB Code | rgb(82, 34, 255) |
HSL Code | hsl(253, 100%, 57%) |
#5222ff Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(82, 34, 255); }
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(253, 100%, 57%); }
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 #5222ff
RGB Code | Hex Code | Preview |
---|---|---|
rgb(82, 34, 255, 10%) | #5222ff1a | |
rgb(82, 34, 255, 20%) | #5222ff33 | |
rgb(82, 34, 255, 40%) | #5222ff4C | |
rgb(82, 34, 255, 60%) | #5222ff99 | |
rgb(82, 34, 255, 80%) | #5222ffCC | |
rgb(82, 34, 255, 100%) | #5222ffFF |
Saturated and desaturated colors of #5222ff
HSL Code | Preview |
---|---|
hsl(253, 10%, 57%) | |
hsl(253, 20%, 57%) | |
hsl(253, 40%, 57%) | |
hsl(253, 60%, 57%) | |
hsl(253, 80%, 57%) | |
hsl(253, 100%, 57%) |
#5222ff Color Usage In CSS
body { color: #5222ff; } p { color: rgb(82, 34, 255); } header { border-bottom:1px solid #5222ff; }