#8f49a0 Color
Color Codes | |
---|---|
Hex Code | #8f49a0 |
RGB Code | rgb(143, 73, 160) |
HSL Code | hsl(288, 37%, 46%) |
#8f49a0 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(143, 73, 160); }
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(288, 37%, 46%); }
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 #8f49a0
RGB Code | Hex Code | Preview |
---|---|---|
rgb(143, 73, 160, 10%) | #8f49a01a | |
rgb(143, 73, 160, 20%) | #8f49a033 | |
rgb(143, 73, 160, 40%) | #8f49a04C | |
rgb(143, 73, 160, 60%) | #8f49a099 | |
rgb(143, 73, 160, 80%) | #8f49a0CC | |
rgb(143, 73, 160, 100%) | #8f49a0FF |
Saturated and desaturated colors of #8f49a0
HSL Code | Preview |
---|---|
hsl(288, 10%, 46%) | |
hsl(288, 20%, 46%) | |
hsl(288, 40%, 46%) | |
hsl(288, 60%, 46%) | |
hsl(288, 80%, 46%) | |
hsl(288, 100%, 46%) |
#8f49a0 Color Usage In CSS
body { color: #8f49a0; } p { color: rgb(143, 73, 160); } header { border-bottom:1px solid #8f49a0; }