Random Color Generator

#c874ed Color

Color Codes
Hex Code #c874ed
RGB Code rgb(200, 116, 237)
HSL Code hsl(282, 77%, 69%)

#c874ed Color Syntax

rgb()

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

 main {
    background-color: rgb(200, 116, 237);
   }

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, 77%, 69%);
  }

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 #c874ed

RGB Code Hex Code Preview
rgb(200, 116, 237, 10%) #c874ed1a  
rgb(200, 116, 237, 20%) #c874ed33  
rgb(200, 116, 237, 40%) #c874ed4C  
rgb(200, 116, 237, 60%) #c874ed99  
rgb(200, 116, 237, 80%) #c874edCC  
rgb(200, 116, 237, 100%) #c874edFF  

Saturated and desaturated colors of #c874ed

HSL Code Preview
hsl(282, 10%, 69%)  
hsl(282, 20%, 69%)  
hsl(282, 40%, 69%)  
hsl(282, 60%, 69%)  
hsl(282, 80%, 69%)  
hsl(282, 100%, 69%)  

#c874ed Color Usage In CSS

 body {
    color: #c874ed;
    }
 p {
    color: rgb(200, 116, 237);
    }
 header {
    border-bottom:1px solid #c874ed;
    }
Recent Random Colors