#f7cd1a Color
Color Codes | |
---|---|
Hex Code | #f7cd1a |
RGB Code | rgb(247, 205, 26) |
HSL Code | hsl(49, 93%, 54%) |
#f7cd1a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(247, 205, 26); }
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(49, 93%, 54%); }
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 #f7cd1a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(247, 205, 26, 10%) | #f7cd1a1a | |
rgb(247, 205, 26, 20%) | #f7cd1a33 | |
rgb(247, 205, 26, 40%) | #f7cd1a4C | |
rgb(247, 205, 26, 60%) | #f7cd1a99 | |
rgb(247, 205, 26, 80%) | #f7cd1aCC | |
rgb(247, 205, 26, 100%) | #f7cd1aFF |
Saturated and desaturated colors of #f7cd1a
HSL Code | Preview |
---|---|
hsl(49, 10%, 54%) | |
hsl(49, 20%, 54%) | |
hsl(49, 40%, 54%) | |
hsl(49, 60%, 54%) | |
hsl(49, 80%, 54%) | |
hsl(49, 100%, 54%) |
#f7cd1a Color Usage In CSS
body { color: #f7cd1a; } p { color: rgb(247, 205, 26); } header { border-bottom:1px solid #f7cd1a; }