#e2d40c Color
Color Codes | |
---|---|
Hex Code | #e2d40c |
RGB Code | rgb(226, 212, 12) |
HSL Code | hsl(56, 90%, 47%) |
#e2d40c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(226, 212, 12); }
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(56, 90%, 47%); }
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 #e2d40c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(226, 212, 12, 10%) | #e2d40c1a | |
rgb(226, 212, 12, 20%) | #e2d40c33 | |
rgb(226, 212, 12, 40%) | #e2d40c4C | |
rgb(226, 212, 12, 60%) | #e2d40c99 | |
rgb(226, 212, 12, 80%) | #e2d40cCC | |
rgb(226, 212, 12, 100%) | #e2d40cFF |
Saturated and desaturated colors of #e2d40c
HSL Code | Preview |
---|---|
hsl(56, 10%, 47%) | |
hsl(56, 20%, 47%) | |
hsl(56, 40%, 47%) | |
hsl(56, 60%, 47%) | |
hsl(56, 80%, 47%) | |
hsl(56, 100%, 47%) |
#e2d40c Color Usage In CSS
body { color: #e2d40c; } p { color: rgb(226, 212, 12); } header { border-bottom:1px solid #e2d40c; }