#b312cf Color
Color Codes | |
---|---|
Hex Code | #b312cf |
RGB Code | rgb(179, 18, 207) |
HSL Code | hsl(291, 84%, 44%) |
#b312cf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(179, 18, 207); }
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(291, 84%, 44%); }
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 #b312cf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(179, 18, 207, 10%) | #b312cf1a | |
rgb(179, 18, 207, 20%) | #b312cf33 | |
rgb(179, 18, 207, 40%) | #b312cf4C | |
rgb(179, 18, 207, 60%) | #b312cf99 | |
rgb(179, 18, 207, 80%) | #b312cfCC | |
rgb(179, 18, 207, 100%) | #b312cfFF |
Saturated and desaturated colors of #b312cf
HSL Code | Preview |
---|---|
hsl(291, 10%, 44%) | |
hsl(291, 20%, 44%) | |
hsl(291, 40%, 44%) | |
hsl(291, 60%, 44%) | |
hsl(291, 80%, 44%) | |
hsl(291, 100%, 44%) |
#b312cf Color Usage In CSS
body { color: #b312cf; } p { color: rgb(179, 18, 207); } header { border-bottom:1px solid #b312cf; }