#c301ef Color
Color Codes | |
---|---|
Hex Code | #c301ef |
RGB Code | rgb(195, 01, 239) |
HSL Code | hsl(289, 99%, 47%) |
#c301ef Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(195, 01, 239); }
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(289, 99%, 47%); }
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 #c301ef
RGB Code | Hex Code | Preview |
---|---|---|
rgb(195, 01, 239, 10%) | #c301ef1a | |
rgb(195, 01, 239, 20%) | #c301ef33 | |
rgb(195, 01, 239, 40%) | #c301ef4C | |
rgb(195, 01, 239, 60%) | #c301ef99 | |
rgb(195, 01, 239, 80%) | #c301efCC | |
rgb(195, 01, 239, 100%) | #c301efFF |
Saturated and desaturated colors of #c301ef
HSL Code | Preview |
---|---|
hsl(289, 10%, 47%) | |
hsl(289, 20%, 47%) | |
hsl(289, 40%, 47%) | |
hsl(289, 60%, 47%) | |
hsl(289, 80%, 47%) | |
hsl(289, 100%, 47%) |
#c301ef Color Usage In CSS
body { color: #c301ef; } p { color: rgb(195, 01, 239); } header { border-bottom:1px solid #c301ef; }