Random Color Generator

#cd4afd Color

Color Codes
Hex Code #cd4afd
RGB Code rgb(205, 74, 253)
HSL Code hsl(284, 98%, 64%)

#cd4afd Color Syntax

rgb()

 rgb(Red, Green, Blue);
 rgba(Red, Green, Blue, Alpha);

 main {
    background-color: rgb(205, 74, 253);
   }

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(284, 98%, 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 #cd4afd

RGB Code Hex Code Preview
rgb(205, 74, 253, 10%) #cd4afd1a  
rgb(205, 74, 253, 20%) #cd4afd33  
rgb(205, 74, 253, 40%) #cd4afd4C  
rgb(205, 74, 253, 60%) #cd4afd99  
rgb(205, 74, 253, 80%) #cd4afdCC  
rgb(205, 74, 253, 100%) #cd4afdFF  

Saturated and desaturated colors of #cd4afd

HSL Code Preview
hsl(284, 10%, 64%)  
hsl(284, 20%, 64%)  
hsl(284, 40%, 64%)  
hsl(284, 60%, 64%)  
hsl(284, 80%, 64%)  
hsl(284, 100%, 64%)  

#cd4afd Color Usage In CSS

 body {
    color: #cd4afd;
    }
 p {
    color: rgb(205, 74, 253);
    }
 header {
    border-bottom:1px solid #cd4afd;
    }
Recent Random Colors