#ef0c4b Color
Color Codes | |
---|---|
Hex Code | #ef0c4b |
RGB Code | rgb(239, 12, 75) |
HSL Code | hsl(343, 90%, 49%) |
#ef0c4b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(239, 12, 75); }
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, 90%, 49%); }
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 #ef0c4b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(239, 12, 75, 10%) | #ef0c4b1a | |
rgb(239, 12, 75, 20%) | #ef0c4b33 | |
rgb(239, 12, 75, 40%) | #ef0c4b4C | |
rgb(239, 12, 75, 60%) | #ef0c4b99 | |
rgb(239, 12, 75, 80%) | #ef0c4bCC | |
rgb(239, 12, 75, 100%) | #ef0c4bFF |
Saturated and desaturated colors of #ef0c4b
HSL Code | Preview |
---|---|
hsl(343, 10%, 49%) | |
hsl(343, 20%, 49%) | |
hsl(343, 40%, 49%) | |
hsl(343, 60%, 49%) | |
hsl(343, 80%, 49%) | |
hsl(343, 100%, 49%) |
#ef0c4b Color Usage In CSS
body { color: #ef0c4b; } p { color: rgb(239, 12, 75); } header { border-bottom:1px solid #ef0c4b; }