#f0a2d2 Color
Color Codes | |
---|---|
Hex Code | #f0a2d2 |
RGB Code | rgb(240, 162, 210) |
HSL Code | hsl(323, 72%, 79%) |
#f0a2d2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(240, 162, 210); }
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(323, 72%, 79%); }
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 #f0a2d2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(240, 162, 210, 10%) | #f0a2d21a | |
rgb(240, 162, 210, 20%) | #f0a2d233 | |
rgb(240, 162, 210, 40%) | #f0a2d24C | |
rgb(240, 162, 210, 60%) | #f0a2d299 | |
rgb(240, 162, 210, 80%) | #f0a2d2CC | |
rgb(240, 162, 210, 100%) | #f0a2d2FF |
Saturated and desaturated colors of #f0a2d2
HSL Code | Preview |
---|---|
hsl(323, 10%, 79%) | |
hsl(323, 20%, 79%) | |
hsl(323, 40%, 79%) | |
hsl(323, 60%, 79%) | |
hsl(323, 80%, 79%) | |
hsl(323, 100%, 79%) |
#f0a2d2 Color Usage In CSS
body { color: #f0a2d2; } p { color: rgb(240, 162, 210); } header { border-bottom:1px solid #f0a2d2; }