#6942f5 Color
Color Codes | |
---|---|
Hex Code | #6942f5 |
RGB Code | rgb(105, 66, 245) |
HSL Code | hsl(253, 90%, 61%) |
#6942f5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(105, 66, 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(253, 90%, 61%); }
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 #6942f5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(105, 66, 245, 10%) | #6942f51a | |
rgb(105, 66, 245, 20%) | #6942f533 | |
rgb(105, 66, 245, 40%) | #6942f54C | |
rgb(105, 66, 245, 60%) | #6942f599 | |
rgb(105, 66, 245, 80%) | #6942f5CC | |
rgb(105, 66, 245, 100%) | #6942f5FF |
Saturated and desaturated colors of #6942f5
HSL Code | Preview |
---|---|
hsl(253, 10%, 61%) | |
hsl(253, 20%, 61%) | |
hsl(253, 40%, 61%) | |
hsl(253, 60%, 61%) | |
hsl(253, 80%, 61%) | |
hsl(253, 100%, 61%) |
#6942f5 Color Usage In CSS
body { color: #6942f5; } p { color: rgb(105, 66, 245); } header { border-bottom:1px solid #6942f5; }