#af2ebd Color
Color Codes | |
---|---|
Hex Code | #af2ebd |
RGB Code | rgb(175, 46, 189) |
HSL Code | hsl(294, 61%, 46%) |
#af2ebd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(175, 46, 189); }
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(294, 61%, 46%); }
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 #af2ebd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(175, 46, 189, 10%) | #af2ebd1a | |
rgb(175, 46, 189, 20%) | #af2ebd33 | |
rgb(175, 46, 189, 40%) | #af2ebd4C | |
rgb(175, 46, 189, 60%) | #af2ebd99 | |
rgb(175, 46, 189, 80%) | #af2ebdCC | |
rgb(175, 46, 189, 100%) | #af2ebdFF |
Saturated and desaturated colors of #af2ebd
HSL Code | Preview |
---|---|
hsl(294, 10%, 46%) | |
hsl(294, 20%, 46%) | |
hsl(294, 40%, 46%) | |
hsl(294, 60%, 46%) | |
hsl(294, 80%, 46%) | |
hsl(294, 100%, 46%) |
#af2ebd Color Usage In CSS
body { color: #af2ebd; } p { color: rgb(175, 46, 189); } header { border-bottom:1px solid #af2ebd; }