OishiSen
OishiSen
Semester: 8th
● HTML supports predefined color names such as 'red', 'blue', and 'green'.
● These names are easy to remember and widely used for simplicity.
2.Hexadecimal Values:
● Hex codes represent colors using a '#' followed by six characters (e.g.,
#FF5733).
● Each pair of characters defines the intensity of Red, Green, and Blue
(RGB).
3. RGB Values:
● RGB uses a numeric format like 'rgb(255, 87, 51)' to specify colors.
● It provides precise control over the intensity of each color component.
4. HSL Values:
Usage Examples
Here are examples of how colors are implemented in HTML:
1. Color Pickers: Tools like Adobe Color and Coolors generate color palettes.
2. Contrast Checkers: Tools like WebAIM help ensure text readability.
3. Browser DevTools: Built-in tools for testing and adjusting colors in real
time.
Best Practices
References
● https://www.w3schools.com/colors
● https://developer.mozilla.org/en-US/docs/Web/CSS/color
● https://htmlcolorcodes.com
● https://web.dev/accessible-color-systems/