#b28b0c Color
Color Codes | |
---|---|
Hex Code | #b28b0c |
RGB Code | rgb(178, 139, 12) |
HSL Code | hsl(46, 87%, 37%) |
#b28b0c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(178, 139, 12); }
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(46, 87%, 37%); }
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 #b28b0c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(178, 139, 12, 10%) | #b28b0c1a | |
rgb(178, 139, 12, 20%) | #b28b0c33 | |
rgb(178, 139, 12, 40%) | #b28b0c4C | |
rgb(178, 139, 12, 60%) | #b28b0c99 | |
rgb(178, 139, 12, 80%) | #b28b0cCC | |
rgb(178, 139, 12, 100%) | #b28b0cFF |
Saturated and desaturated colors of #b28b0c
HSL Code | Preview |
---|---|
hsl(46, 10%, 37%) | |
hsl(46, 20%, 37%) | |
hsl(46, 40%, 37%) | |
hsl(46, 60%, 37%) | |
hsl(46, 80%, 37%) | |
hsl(46, 100%, 37%) |
#b28b0c Color Usage In CSS
body { color: #b28b0c; } p { color: rgb(178, 139, 12); } header { border-bottom:1px solid #b28b0c; }