#8c37ec Color
Color Codes | |
---|---|
Hex Code | #8c37ec |
RGB Code | rgb(140, 55, 236) |
HSL Code | hsl(268, 83%, 57%) |
#8c37ec Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(140, 55, 236); }
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(268, 83%, 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 #8c37ec
RGB Code | Hex Code | Preview |
---|---|---|
rgb(140, 55, 236, 10%) | #8c37ec1a | |
rgb(140, 55, 236, 20%) | #8c37ec33 | |
rgb(140, 55, 236, 40%) | #8c37ec4C | |
rgb(140, 55, 236, 60%) | #8c37ec99 | |
rgb(140, 55, 236, 80%) | #8c37ecCC | |
rgb(140, 55, 236, 100%) | #8c37ecFF |
Saturated and desaturated colors of #8c37ec
HSL Code | Preview |
---|---|
hsl(268, 10%, 57%) | |
hsl(268, 20%, 57%) | |
hsl(268, 40%, 57%) | |
hsl(268, 60%, 57%) | |
hsl(268, 80%, 57%) | |
hsl(268, 100%, 57%) |
#8c37ec Color Usage In CSS
body { color: #8c37ec; } p { color: rgb(140, 55, 236); } header { border-bottom:1px solid #8c37ec; }