#d4119e Color
Color Codes | |
---|---|
Hex Code | #d4119e |
RGB Code | rgb(212, 17, 158) |
HSL Code | hsl(317, 85%, 45%) |
#d4119e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(212, 17, 158); }
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(317, 85%, 45%); }
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 #d4119e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(212, 17, 158, 10%) | #d4119e1a | |
rgb(212, 17, 158, 20%) | #d4119e33 | |
rgb(212, 17, 158, 40%) | #d4119e4C | |
rgb(212, 17, 158, 60%) | #d4119e99 | |
rgb(212, 17, 158, 80%) | #d4119eCC | |
rgb(212, 17, 158, 100%) | #d4119eFF |
Saturated and desaturated colors of #d4119e
HSL Code | Preview |
---|---|
hsl(317, 10%, 45%) | |
hsl(317, 20%, 45%) | |
hsl(317, 40%, 45%) | |
hsl(317, 60%, 45%) | |
hsl(317, 80%, 45%) | |
hsl(317, 100%, 45%) |
#d4119e Color Usage In CSS
body { color: #d4119e; } p { color: rgb(212, 17, 158); } header { border-bottom:1px solid #d4119e; }