#f9cc2b Color
Color Codes | |
---|---|
Hex Code | #f9cc2b |
RGB Code | rgb(249, 204, 43) |
HSL Code | hsl(47, 94%, 57%) |
#f9cc2b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(249, 204, 43); }
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(47, 94%, 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 #f9cc2b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(249, 204, 43, 10%) | #f9cc2b1a | |
rgb(249, 204, 43, 20%) | #f9cc2b33 | |
rgb(249, 204, 43, 40%) | #f9cc2b4C | |
rgb(249, 204, 43, 60%) | #f9cc2b99 | |
rgb(249, 204, 43, 80%) | #f9cc2bCC | |
rgb(249, 204, 43, 100%) | #f9cc2bFF |
Saturated and desaturated colors of #f9cc2b
HSL Code | Preview |
---|---|
hsl(47, 10%, 57%) | |
hsl(47, 20%, 57%) | |
hsl(47, 40%, 57%) | |
hsl(47, 60%, 57%) | |
hsl(47, 80%, 57%) | |
hsl(47, 100%, 57%) |
#f9cc2b Color Usage In CSS
body { color: #f9cc2b; } p { color: rgb(249, 204, 43); } header { border-bottom:1px solid #f9cc2b; }