#5130ac Color
Color Codes | |
---|---|
Hex Code | #5130ac |
RGB Code | rgb(81, 48, 172) |
HSL Code | hsl(256, 56%, 43%) |
#5130ac Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(81, 48, 172); }
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(256, 56%, 43%); }
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 #5130ac
RGB Code | Hex Code | Preview |
---|---|---|
rgb(81, 48, 172, 10%) | #5130ac1a | |
rgb(81, 48, 172, 20%) | #5130ac33 | |
rgb(81, 48, 172, 40%) | #5130ac4C | |
rgb(81, 48, 172, 60%) | #5130ac99 | |
rgb(81, 48, 172, 80%) | #5130acCC | |
rgb(81, 48, 172, 100%) | #5130acFF |
Saturated and desaturated colors of #5130ac
HSL Code | Preview |
---|---|
hsl(256, 10%, 43%) | |
hsl(256, 20%, 43%) | |
hsl(256, 40%, 43%) | |
hsl(256, 60%, 43%) | |
hsl(256, 80%, 43%) | |
hsl(256, 100%, 43%) |
#5130ac Color Usage In CSS
body { color: #5130ac; } p { color: rgb(81, 48, 172); } header { border-bottom:1px solid #5130ac; }