#d9299b Color
Color Codes | |
---|---|
Hex Code | #d9299b |
RGB Code | rgb(217, 41, 155) |
HSL Code | hsl(321, 70%, 51%) |
#d9299b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(217, 41, 155); }
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(321, 70%, 51%); }
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 #d9299b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(217, 41, 155, 10%) | #d9299b1a | |
rgb(217, 41, 155, 20%) | #d9299b33 | |
rgb(217, 41, 155, 40%) | #d9299b4C | |
rgb(217, 41, 155, 60%) | #d9299b99 | |
rgb(217, 41, 155, 80%) | #d9299bCC | |
rgb(217, 41, 155, 100%) | #d9299bFF |
Saturated and desaturated colors of #d9299b
HSL Code | Preview |
---|---|
hsl(321, 10%, 51%) | |
hsl(321, 20%, 51%) | |
hsl(321, 40%, 51%) | |
hsl(321, 60%, 51%) | |
hsl(321, 80%, 51%) | |
hsl(321, 100%, 51%) |
#d9299b Color Usage In CSS
body { color: #d9299b; } p { color: rgb(217, 41, 155); } header { border-bottom:1px solid #d9299b; }