#6a52f5 Color
Color Codes | |
---|---|
Hex Code | #6a52f5 |
RGB Code | rgb(106, 82, 245) |
HSL Code | hsl(249, 89%, 64%) |
#6a52f5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(106, 82, 245); }
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(249, 89%, 64%); }
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 #6a52f5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(106, 82, 245, 10%) | #6a52f51a | |
rgb(106, 82, 245, 20%) | #6a52f533 | |
rgb(106, 82, 245, 40%) | #6a52f54C | |
rgb(106, 82, 245, 60%) | #6a52f599 | |
rgb(106, 82, 245, 80%) | #6a52f5CC | |
rgb(106, 82, 245, 100%) | #6a52f5FF |
Saturated and desaturated colors of #6a52f5
HSL Code | Preview |
---|---|
hsl(249, 10%, 64%) | |
hsl(249, 20%, 64%) | |
hsl(249, 40%, 64%) | |
hsl(249, 60%, 64%) | |
hsl(249, 80%, 64%) | |
hsl(249, 100%, 64%) |
#6a52f5 Color Usage In CSS
body { color: #6a52f5; } p { color: rgb(106, 82, 245); } header { border-bottom:1px solid #6a52f5; }