#f27ddd Color
Color Codes | |
---|---|
Hex Code | #f27ddd |
RGB Code | rgb(242, 125, 221) |
HSL Code | hsl(311, 82%, 72%) |
#f27ddd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(242, 125, 221); }
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(311, 82%, 72%); }
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 #f27ddd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(242, 125, 221, 10%) | #f27ddd1a | |
rgb(242, 125, 221, 20%) | #f27ddd33 | |
rgb(242, 125, 221, 40%) | #f27ddd4C | |
rgb(242, 125, 221, 60%) | #f27ddd99 | |
rgb(242, 125, 221, 80%) | #f27dddCC | |
rgb(242, 125, 221, 100%) | #f27dddFF |
Saturated and desaturated colors of #f27ddd
HSL Code | Preview |
---|---|
hsl(311, 10%, 72%) | |
hsl(311, 20%, 72%) | |
hsl(311, 40%, 72%) | |
hsl(311, 60%, 72%) | |
hsl(311, 80%, 72%) | |
hsl(311, 100%, 72%) |
#f27ddd Color Usage In CSS
body { color: #f27ddd; } p { color: rgb(242, 125, 221); } header { border-bottom:1px solid #f27ddd; }