1. Hexadecimal Color Codes (HEX):
These are six-digit codes representing colors in HTML/CSS. The format is #RRGGBB where RR is the red component, GG is green, and BB is blue.
- Red: #FF0000
- Green: #00FF00
- Blue: #0000FF
- Black: #000000
- White: #FFFFFF
- Yellow: #FFFF00
- Cyan: #00FFFF
- Magenta: #FF00FF
- Gray: #808080
- Orange: #FFA500
- Purple: #800080
2. RGB Color Codes:
This is a way of specifying colors in terms of their Red, Green, and Blue components. Each color component ranges from 0 to 255.
- Red: rgb(255, 0, 0)
- Green: rgb(0, 255, 0)
- Blue: rgb(0, 0, 255)
- Black: rgb(0, 0, 0)
- White: rgb(255, 255, 255)
- Yellow: rgb(255, 255, 0)
- Cyan: rgb(0, 255, 255)
- Magenta: rgb(255, 0, 255)
- Gray: rgb(128, 128, 128)
- Orange: rgb(255, 165, 0)
- Purple: rgb(128, 0, 128)
3. CSS Color Names:
These are predefined names for colors that are supported in CSS.
- AliceBlue: #F0F8FF
- AntiqueWhite: #FAEBD7
- Aquamarine: #7FFFD4
- Azure: #F0FFFF
- Beige: #F5F5DC
- Chartreuse: #7FFF00
- Crimson: #DC143C
- Lime: #00FF00
- Lavender: #E6E6FA
- Tomato: #FF6347
4. HSL Color Codes:
This is a cylindrical-coordinate representation of colors, based on hue (H), saturation (S), and lightness (L).
- Red: hsl(0, 100%, 50%)
- Green: hsl(120, 100%, 50%)
- Blue: hsl(240, 100%, 50%)
- Yellow: hsl(60, 100%, 50%)
- Cyan: hsl(180, 100%, 50%)
- Magenta: hsl(300, 100%, 50%)
- Orange: hsl(39, 100%, 50%)
- Purple: hsl(270, 100%, 50%)

Leave a Reply
You must be logged in to post a comment.