#e0c42a Color
Color Codes | |
---|---|
Hex Code | #e0c42a |
RGB Code | rgb(224, 196, 42) |
HSL Code | hsl(51, 75%, 52%) |
#e0c42a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(224, 196, 42); }
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(51, 75%, 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 #e0c42a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(224, 196, 42, 10%) | #e0c42a1a | |
rgb(224, 196, 42, 20%) | #e0c42a33 | |
rgb(224, 196, 42, 40%) | #e0c42a4C | |
rgb(224, 196, 42, 60%) | #e0c42a99 | |
rgb(224, 196, 42, 80%) | #e0c42aCC | |
rgb(224, 196, 42, 100%) | #e0c42aFF |
Saturated and desaturated colors of #e0c42a
HSL Code | Preview |
---|---|
hsl(51, 10%, 52%) | |
hsl(51, 20%, 52%) | |
hsl(51, 40%, 52%) | |
hsl(51, 60%, 52%) | |
hsl(51, 80%, 52%) | |
hsl(51, 100%, 52%) |
#e0c42a Color Usage In CSS
body { color: #e0c42a; } p { color: rgb(224, 196, 42); } header { border-bottom:1px solid #e0c42a; }