#5152f6 Color
Color Codes | |
---|---|
Hex Code | #5152f6 |
RGB Code | rgb(81, 82, 246) |
HSL Code | hsl(240, 90%, 64%) |
#5152f6 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(81, 82, 246); }
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(240, 90%, 64%); }
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 #5152f6
RGB Code | Hex Code | Preview |
---|---|---|
rgb(81, 82, 246, 10%) | #5152f61a | |
rgb(81, 82, 246, 20%) | #5152f633 | |
rgb(81, 82, 246, 40%) | #5152f64C | |
rgb(81, 82, 246, 60%) | #5152f699 | |
rgb(81, 82, 246, 80%) | #5152f6CC | |
rgb(81, 82, 246, 100%) | #5152f6FF |
Saturated and desaturated colors of #5152f6
HSL Code | Preview |
---|---|
hsl(240, 10%, 64%) | |
hsl(240, 20%, 64%) | |
hsl(240, 40%, 64%) | |
hsl(240, 60%, 64%) | |
hsl(240, 80%, 64%) | |
hsl(240, 100%, 64%) |
#5152f6 Color Usage In CSS
body { color: #5152f6; } p { color: rgb(81, 82, 246); } header { border-bottom:1px solid #5152f6; }