#ec3998 Color
Color Codes | |
---|---|
Hex Code | #ec3998 |
RGB Code | rgb(236, 57, 152) |
HSL Code | hsl(328, 82%, 57%) |
#ec3998 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(236, 57, 152); }
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, 82%, 57%); }
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 #ec3998
RGB Code | Hex Code | Preview |
---|---|---|
rgb(236, 57, 152, 10%) | #ec39981a | |
rgb(236, 57, 152, 20%) | #ec399833 | |
rgb(236, 57, 152, 40%) | #ec39984C | |
rgb(236, 57, 152, 60%) | #ec399899 | |
rgb(236, 57, 152, 80%) | #ec3998CC | |
rgb(236, 57, 152, 100%) | #ec3998FF |
Saturated and desaturated colors of #ec3998
HSL Code | Preview |
---|---|
hsl(328, 10%, 57%) | |
hsl(328, 20%, 57%) | |
hsl(328, 40%, 57%) | |
hsl(328, 60%, 57%) | |
hsl(328, 80%, 57%) | |
hsl(328, 100%, 57%) |
#ec3998 Color Usage In CSS
body { color: #ec3998; } p { color: rgb(236, 57, 152); } header { border-bottom:1px solid #ec3998; }