HTML CSS Style Color Guide
Follow these guidelines when updating or creating HTML/CSS styles for browser rendering. Color names
represent the full spectrum of their respective hue ranges (e.g., "blue" includes navy, sky blue, etc.).
Color Definitions
- Hot Colors: Oranges, reds, and yellows
- Cool Colors: Blues, greens, and purples
- Neutral Colors: Grays and grayscale variations
- Binary Colors: Black and white
- 60-30-10 Rule
- Primary Color: Use 60% of the time (cool or light color)
- Secondary Color: Use 30% of the time (cool or light color)
- Accent: Use 10% of the time (complementary hot color)
Color Usage Guidelines
Balance the colors used by applying the 60-30-10 rule to graphic design elements like backgrounds,
buttons, cards, etc...
Background Colors
Never Use:
- Purple or magenta
- Red, orange, or yellow
- Pink
- Any hot color
Recommended:
- White or off-white
- Light cool colors (e.g., light blues, light greens)
- Subtle neutral tones
- Light gradients with minimal color shift
Text Colors
Never Use:
- Yellow (poor contrast and readability)
- Pink
- Pure white or light text on light backgrounds
- Pure black or dark text on dark backgrounds
Recommended:
- Dark neutral colors (e.g., #1f2328, #24292f)
- Near-black variations (#000000 to #333333)
- Ensure background is a light color
- Dark grays (#4d4d4d, #6c757d)
- High-contrast combinations for accessibility
- Near-white variations (#ffffff to #f0f2f3)
- Ensure background is a dark color
Colors to Avoid
Unless explicitly required by design specifications or user request, avoid:
- Bright purples and magentas
- Bright pinks and neon colors
- Highly saturated hot colors
- Colors with low contrast ratios (fails WCAG accessibility standards)
Colors to Use Sparingly
Hot Colors (red, orange, yellow):
- Reserve for critical alerts, warnings, or error messages
- Use only when conveying urgency or importance
- Limit to small accent areas rather than large sections
- Consider alternatives like icons or bold text before using hot colors
Gradients
Apply gradients with subtle color transitions to maintain professional aesthetics.
Best Practices
- Keep color shifts minimal (e.g., #E6F2FF to #F5F7FA)
- Use gradients within the same color family
- Avoid combining hot and cool colors in a single gradient
- Prefer linear gradients over radial for backgrounds
Appropriate Use Cases
- Background containers and sections
- Button hover states and interactive elements
- Drop shadows and depth effects
- Header and navigation bars
- Card components and panels
Additional Resources
1---2name: html-css-style-color-guide3description: HTML CSS Style Color Guide4---5# HTML CSS Style Color Guide67Follow these guidelines when updating or creating HTML/CSS styles for browser rendering. Color names8represent the full spectrum of their respective hue ranges (e.g., "blue" includes navy, sky blue, etc.).910## Color Definitions1112- **Hot Colors**: Oranges, reds, and yellows13- **Cool Colors**: Blues, greens, and purples14- **Neutral Colors**: Grays and grayscale variations15- **Binary Colors**: Black and white16- **60-30-10 Rule**17 - **Primary Color**: Use 60% of the time (*cool or light color*)18 - **Secondary Color**: Use 30% of the time (*cool or light color*)19 - **Accent**: Use 10% of the time (*complementary hot color*)2021## Color Usage Guidelines2223Balance the colors used by applying the **60-30-10 rule** to graphic design elements like backgrounds,24buttons, cards, etc...2526### Background Colors2728**Never Use:**2930- Purple or magenta31- Red, orange, or yellow32- Pink33- Any hot color3435**Recommended:**3637- White or off-white38- Light cool colors (e.g., light blues, light greens)39- Subtle neutral tones40- Light gradients with minimal color shift4142### Text Colors4344**Never Use:**4546- Yellow (poor contrast and readability)47- Pink48- Pure white or light text on light backgrounds49- Pure black or dark text on dark backgrounds5051**Recommended:**5253- Dark neutral colors (e.g., #1f2328, #24292f)54- Near-black variations (#000000 to #333333)55 - Ensure background is a light color56- Dark grays (#4d4d4d, #6c757d)57- High-contrast combinations for accessibility58- Near-white variations (#ffffff to #f0f2f3)59 - Ensure background is a dark color6061### Colors to Avoid6263Unless explicitly required by design specifications or user request, avoid:6465- Bright purples and magentas66- Bright pinks and neon colors67- Highly saturated hot colors68- Colors with low contrast ratios (fails WCAG accessibility standards)6970### Colors to Use Sparingly7172**Hot Colors** (red, orange, yellow):7374- Reserve for critical alerts, warnings, or error messages75- Use only when conveying urgency or importance76- Limit to small accent areas rather than large sections77- Consider alternatives like icons or bold text before using hot colors7879## Gradients8081Apply gradients with subtle color transitions to maintain professional aesthetics.8283### Best Practices8485- Keep color shifts minimal (e.g., #E6F2FF to #F5F7FA)86- Use gradients within the same color family87- Avoid combining hot and cool colors in a single gradient88- Prefer linear gradients over radial for backgrounds8990### Appropriate Use Cases9192- Background containers and sections93- Button hover states and interactive elements94- Drop shadows and depth effects95- Header and navigation bars96- Card components and panels9798## Additional Resources99100- [Color Tool](https://civicactions.github.io/uswds-color-tool/)101- [Government or Professional Color Standards](https://designsystem.digital.gov/design-tokens/color/overview/)102- [UI Color Palette Best Practices](https://www.interaction-design.org/literature/article/ui-color-palette)103- [Color Combination Resource](https://www.figma.com/resource-library/color-combinations/)