#b148df Color
Color Codes | |
---|---|
Hex Code | #b148df |
RGB Code | rgb(177, 72, 223) |
HSL Code | hsl(282, 70%, 58%) |
#b148df Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(177, 72, 223); }
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(282, 70%, 58%); }
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 #b148df
RGB Code | Hex Code | Preview |
---|---|---|
rgb(177, 72, 223, 10%) | #b148df1a | |
rgb(177, 72, 223, 20%) | #b148df33 | |
rgb(177, 72, 223, 40%) | #b148df4C | |
rgb(177, 72, 223, 60%) | #b148df99 | |
rgb(177, 72, 223, 80%) | #b148dfCC | |
rgb(177, 72, 223, 100%) | #b148dfFF |
Saturated and desaturated colors of #b148df
HSL Code | Preview |
---|---|
hsl(282, 10%, 58%) | |
hsl(282, 20%, 58%) | |
hsl(282, 40%, 58%) | |
hsl(282, 60%, 58%) | |
hsl(282, 80%, 58%) | |
hsl(282, 100%, 58%) |
#b148df Color Usage In CSS
body { color: #b148df; } p { color: rgb(177, 72, 223); } header { border-bottom:1px solid #b148df; }