#c126fe Color
Color Codes | |
---|---|
Hex Code | #c126fe |
RGB Code | rgb(193, 38, 254) |
HSL Code | hsl(283, 99%, 57%) |
#c126fe Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(193, 38, 254); }
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(283, 99%, 57%); }
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 #c126fe
RGB Code | Hex Code | Preview |
---|---|---|
rgb(193, 38, 254, 10%) | #c126fe1a | |
rgb(193, 38, 254, 20%) | #c126fe33 | |
rgb(193, 38, 254, 40%) | #c126fe4C | |
rgb(193, 38, 254, 60%) | #c126fe99 | |
rgb(193, 38, 254, 80%) | #c126feCC | |
rgb(193, 38, 254, 100%) | #c126feFF |
Saturated and desaturated colors of #c126fe
HSL Code | Preview |
---|---|
hsl(283, 10%, 57%) | |
hsl(283, 20%, 57%) | |
hsl(283, 40%, 57%) | |
hsl(283, 60%, 57%) | |
hsl(283, 80%, 57%) | |
hsl(283, 100%, 57%) |
#c126fe Color Usage In CSS
body { color: #c126fe; } p { color: rgb(193, 38, 254); } header { border-bottom:1px solid #c126fe; }