#8a2261 Color
Color Codes | |
---|---|
Hex Code | #8a2261 |
RGB Code | rgb(138, 34, 97) |
HSL Code | hsl(324, 60%, 34%) |
#8a2261 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(138, 34, 97); }
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(324, 60%, 34%); }
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 #8a2261
RGB Code | Hex Code | Preview |
---|---|---|
rgb(138, 34, 97, 10%) | #8a22611a | |
rgb(138, 34, 97, 20%) | #8a226133 | |
rgb(138, 34, 97, 40%) | #8a22614C | |
rgb(138, 34, 97, 60%) | #8a226199 | |
rgb(138, 34, 97, 80%) | #8a2261CC | |
rgb(138, 34, 97, 100%) | #8a2261FF |
Saturated and desaturated colors of #8a2261
HSL Code | Preview |
---|---|
hsl(324, 10%, 34%) | |
hsl(324, 20%, 34%) | |
hsl(324, 40%, 34%) | |
hsl(324, 60%, 34%) | |
hsl(324, 80%, 34%) | |
hsl(324, 100%, 34%) |
#8a2261 Color Usage In CSS
body { color: #8a2261; } p { color: rgb(138, 34, 97); } header { border-bottom:1px solid #8a2261; }