#f1ed40 Color
Color Codes | |
---|---|
Hex Code | #f1ed40 |
RGB Code | rgb(241, 237, 64) |
HSL Code | hsl(59, 86%, 60%) |
#f1ed40 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(241, 237, 64); }
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(59, 86%, 60%); }
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 #f1ed40
RGB Code | Hex Code | Preview |
---|---|---|
rgb(241, 237, 64, 10%) | #f1ed401a | |
rgb(241, 237, 64, 20%) | #f1ed4033 | |
rgb(241, 237, 64, 40%) | #f1ed404C | |
rgb(241, 237, 64, 60%) | #f1ed4099 | |
rgb(241, 237, 64, 80%) | #f1ed40CC | |
rgb(241, 237, 64, 100%) | #f1ed40FF |
Saturated and desaturated colors of #f1ed40
HSL Code | Preview |
---|---|
hsl(59, 10%, 60%) | |
hsl(59, 20%, 60%) | |
hsl(59, 40%, 60%) | |
hsl(59, 60%, 60%) | |
hsl(59, 80%, 60%) | |
hsl(59, 100%, 60%) |
#f1ed40 Color Usage In CSS
body { color: #f1ed40; } p { color: rgb(241, 237, 64); } header { border-bottom:1px solid #f1ed40; }