#5b72ca Color
Color Codes | |
---|---|
Hex Code | #5b72ca |
RGB Code | rgb(91, 114, 202) |
HSL Code | hsl(228, 51%, 57%) |
#5b72ca Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(91, 114, 202); }
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(228, 51%, 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 #5b72ca
RGB Code | Hex Code | Preview |
---|---|---|
rgb(91, 114, 202, 10%) | #5b72ca1a | |
rgb(91, 114, 202, 20%) | #5b72ca33 | |
rgb(91, 114, 202, 40%) | #5b72ca4C | |
rgb(91, 114, 202, 60%) | #5b72ca99 | |
rgb(91, 114, 202, 80%) | #5b72caCC | |
rgb(91, 114, 202, 100%) | #5b72caFF |
Saturated and desaturated colors of #5b72ca
HSL Code | Preview |
---|---|
hsl(228, 10%, 57%) | |
hsl(228, 20%, 57%) | |
hsl(228, 40%, 57%) | |
hsl(228, 60%, 57%) | |
hsl(228, 80%, 57%) | |
hsl(228, 100%, 57%) |
#5b72ca Color Usage In CSS
body { color: #5b72ca; } p { color: rgb(91, 114, 202); } header { border-bottom:1px solid #5b72ca; }