#f2c918 Color
Color Codes | |
---|---|
Hex Code | #f2c918 |
RGB Code | rgb(242, 201, 24) |
HSL Code | hsl(49, 89%, 52%) |
#f2c918 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(242, 201, 24); }
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, 89%, 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 #f2c918
RGB Code | Hex Code | Preview |
---|---|---|
rgb(242, 201, 24, 10%) | #f2c9181a | |
rgb(242, 201, 24, 20%) | #f2c91833 | |
rgb(242, 201, 24, 40%) | #f2c9184C | |
rgb(242, 201, 24, 60%) | #f2c91899 | |
rgb(242, 201, 24, 80%) | #f2c918CC | |
rgb(242, 201, 24, 100%) | #f2c918FF |
Saturated and desaturated colors of #f2c918
HSL Code | Preview |
---|---|
hsl(49, 10%, 52%) | |
hsl(49, 20%, 52%) | |
hsl(49, 40%, 52%) | |
hsl(49, 60%, 52%) | |
hsl(49, 80%, 52%) | |
hsl(49, 100%, 52%) |
#f2c918 Color Usage In CSS
body { color: #f2c918; } p { color: rgb(242, 201, 24); } header { border-bottom:1px solid #f2c918; }