#6a1fd3 Color
Color Codes | |
---|---|
Hex Code | #6a1fd3 |
RGB Code | rgb(106, 31, 211) |
HSL Code | hsl(265, 74%, 47%) |
#6a1fd3 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(106, 31, 211); }
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(265, 74%, 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 #6a1fd3
RGB Code | Hex Code | Preview |
---|---|---|
rgb(106, 31, 211, 10%) | #6a1fd31a | |
rgb(106, 31, 211, 20%) | #6a1fd333 | |
rgb(106, 31, 211, 40%) | #6a1fd34C | |
rgb(106, 31, 211, 60%) | #6a1fd399 | |
rgb(106, 31, 211, 80%) | #6a1fd3CC | |
rgb(106, 31, 211, 100%) | #6a1fd3FF |
Saturated and desaturated colors of #6a1fd3
HSL Code | Preview |
---|---|
hsl(265, 10%, 47%) | |
hsl(265, 20%, 47%) | |
hsl(265, 40%, 47%) | |
hsl(265, 60%, 47%) | |
hsl(265, 80%, 47%) | |
hsl(265, 100%, 47%) |
#6a1fd3 Color Usage In CSS
body { color: #6a1fd3; } p { color: rgb(106, 31, 211); } header { border-bottom:1px solid #6a1fd3; }