#cf1fff Color
Color Codes | |
---|---|
Hex Code | #cf1fff |
RGB Code | rgb(207, 31, 255) |
HSL Code | hsl(287, 100%, 56%) |
#cf1fff Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(207, 31, 255); }
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(287, 100%, 56%); }
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 #cf1fff
RGB Code | Hex Code | Preview |
---|---|---|
rgb(207, 31, 255, 10%) | #cf1fff1a | |
rgb(207, 31, 255, 20%) | #cf1fff33 | |
rgb(207, 31, 255, 40%) | #cf1fff4C | |
rgb(207, 31, 255, 60%) | #cf1fff99 | |
rgb(207, 31, 255, 80%) | #cf1fffCC | |
rgb(207, 31, 255, 100%) | #cf1fffFF |
Saturated and desaturated colors of #cf1fff
HSL Code | Preview |
---|---|
hsl(287, 10%, 56%) | |
hsl(287, 20%, 56%) | |
hsl(287, 40%, 56%) | |
hsl(287, 60%, 56%) | |
hsl(287, 80%, 56%) | |
hsl(287, 100%, 56%) |
#cf1fff Color Usage In CSS
body { color: #cf1fff; } p { color: rgb(207, 31, 255); } header { border-bottom:1px solid #cf1fff; }