#d8d002 Color
Color Codes | |
---|---|
Hex Code | #d8d002 |
RGB Code | rgb(216, 208, 02) |
HSL Code | hsl(58, 98%, 43%) |
#d8d002 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(216, 208, 02); }
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(58, 98%, 43%); }
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 #d8d002
RGB Code | Hex Code | Preview |
---|---|---|
rgb(216, 208, 02, 10%) | #d8d0021a | |
rgb(216, 208, 02, 20%) | #d8d00233 | |
rgb(216, 208, 02, 40%) | #d8d0024C | |
rgb(216, 208, 02, 60%) | #d8d00299 | |
rgb(216, 208, 02, 80%) | #d8d002CC | |
rgb(216, 208, 02, 100%) | #d8d002FF |
Saturated and desaturated colors of #d8d002
HSL Code | Preview |
---|---|
hsl(58, 10%, 43%) | |
hsl(58, 20%, 43%) | |
hsl(58, 40%, 43%) | |
hsl(58, 60%, 43%) | |
hsl(58, 80%, 43%) | |
hsl(58, 100%, 43%) |
#d8d002 Color Usage In CSS
body { color: #d8d002; } p { color: rgb(216, 208, 02); } header { border-bottom:1px solid #d8d002; }