#d12f5e Color
Color Codes | |
---|---|
Hex Code | #d12f5e |
RGB Code | rgb(209, 47, 94) |
HSL Code | hsl(343, 64%, 50%) |
#d12f5e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(209, 47, 94); }
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(343, 64%, 50%); }
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 #d12f5e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(209, 47, 94, 10%) | #d12f5e1a | |
rgb(209, 47, 94, 20%) | #d12f5e33 | |
rgb(209, 47, 94, 40%) | #d12f5e4C | |
rgb(209, 47, 94, 60%) | #d12f5e99 | |
rgb(209, 47, 94, 80%) | #d12f5eCC | |
rgb(209, 47, 94, 100%) | #d12f5eFF |
Saturated and desaturated colors of #d12f5e
HSL Code | Preview |
---|---|
hsl(343, 10%, 50%) | |
hsl(343, 20%, 50%) | |
hsl(343, 40%, 50%) | |
hsl(343, 60%, 50%) | |
hsl(343, 80%, 50%) | |
hsl(343, 100%, 50%) |
#d12f5e Color Usage In CSS
body { color: #d12f5e; } p { color: rgb(209, 47, 94); } header { border-bottom:1px solid #d12f5e; }