#f5138d Color
Color Codes | |
---|---|
Hex Code | #f5138d |
RGB Code | rgb(245, 19, 141) |
HSL Code | hsl(328, 92%, 52%) |
#f5138d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(245, 19, 141); }
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(328, 92%, 52%); }
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 #f5138d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(245, 19, 141, 10%) | #f5138d1a | |
rgb(245, 19, 141, 20%) | #f5138d33 | |
rgb(245, 19, 141, 40%) | #f5138d4C | |
rgb(245, 19, 141, 60%) | #f5138d99 | |
rgb(245, 19, 141, 80%) | #f5138dCC | |
rgb(245, 19, 141, 100%) | #f5138dFF |
Saturated and desaturated colors of #f5138d
HSL Code | Preview |
---|---|
hsl(328, 10%, 52%) | |
hsl(328, 20%, 52%) | |
hsl(328, 40%, 52%) | |
hsl(328, 60%, 52%) | |
hsl(328, 80%, 52%) | |
hsl(328, 100%, 52%) |
#f5138d Color Usage In CSS
body { color: #f5138d; } p { color: rgb(245, 19, 141); } header { border-bottom:1px solid #f5138d; }