#ecd042 Color
Color Codes | |
---|---|
Hex Code | #ecd042 |
RGB Code | rgb(236, 208, 66) |
HSL Code | hsl(50, 82%, 59%) |
#ecd042 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(236, 208, 66); }
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(50, 82%, 59%); }
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 #ecd042
RGB Code | Hex Code | Preview |
---|---|---|
rgb(236, 208, 66, 10%) | #ecd0421a | |
rgb(236, 208, 66, 20%) | #ecd04233 | |
rgb(236, 208, 66, 40%) | #ecd0424C | |
rgb(236, 208, 66, 60%) | #ecd04299 | |
rgb(236, 208, 66, 80%) | #ecd042CC | |
rgb(236, 208, 66, 100%) | #ecd042FF |
Saturated and desaturated colors of #ecd042
HSL Code | Preview |
---|---|
hsl(50, 10%, 59%) | |
hsl(50, 20%, 59%) | |
hsl(50, 40%, 59%) | |
hsl(50, 60%, 59%) | |
hsl(50, 80%, 59%) | |
hsl(50, 100%, 59%) |
#ecd042 Color Usage In CSS
body { color: #ecd042; } p { color: rgb(236, 208, 66); } header { border-bottom:1px solid #ecd042; }