#f5f2ba Color
Color Codes | |
---|---|
Hex Code | #f5f2ba |
RGB Code | rgb(245, 242, 186) |
HSL Code | hsl(57, 75%, 85%) |
#f5f2ba Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(245, 242, 186); }
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(57, 75%, 85%); }
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 #f5f2ba
RGB Code | Hex Code | Preview |
---|---|---|
rgb(245, 242, 186, 10%) | #f5f2ba1a | |
rgb(245, 242, 186, 20%) | #f5f2ba33 | |
rgb(245, 242, 186, 40%) | #f5f2ba4C | |
rgb(245, 242, 186, 60%) | #f5f2ba99 | |
rgb(245, 242, 186, 80%) | #f5f2baCC | |
rgb(245, 242, 186, 100%) | #f5f2baFF |
Saturated and desaturated colors of #f5f2ba
HSL Code | Preview |
---|---|
hsl(57, 10%, 85%) | |
hsl(57, 20%, 85%) | |
hsl(57, 40%, 85%) | |
hsl(57, 60%, 85%) | |
hsl(57, 80%, 85%) | |
hsl(57, 100%, 85%) |
#f5f2ba Color Usage In CSS
body { color: #f5f2ba; } p { color: rgb(245, 242, 186); } header { border-bottom:1px solid #f5f2ba; }