HTML CSS Style Color Guide
Color usage guidelines and styling rules for HTML elements to ensure accessible, professional designs.
MCP get_skill({ skillId: "html-css-style-color-guide-f388ce3e" })Use this skill with your agent
Create a free account and connect via MCP
# 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 - [Color Tool](https://civicactions.github.io/uswds-color-tool/) - [Government or Professional Color Standards](https://designsystem.digital.gov/design-tokens/color/overview/) - [UI Color Palette Best Practices](https://www.interaction-design.org/literature/article/ui-color-palette) - [Color Combination Resource](https://www.figma.com/resource-library/color-combinations/)
Related Skills
More skills in Design, Media & Creative
Ableton Lom
Ableton Live Object Model (LOM) API reference for Python Remote Scripts and control surface development.
Accessibility Compliance
Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.
Adobe Illustrator Scripting
Write, debug, and optimize Adobe Illustrator automation scripts using ExtendScript (JavaScript/JSX). Use when creating or modifying scripts that manipulate documents, layers, paths, text frames, colors, symbols, artboards, or any Illustrator DOM objects. Covers the complete JavaScript object model, coordinate system, measurement units, export workflows, and scripting best practices.
🎬 AI Cinema Director Skill
Direct high-fidelity cinematic video with AI — translates creative intent into technical cinematographic directives for Veo3, Kling, and Luma video models via muapi.ai
AI Clipping
Turn a long video into N viral-ready short clips with a single managed API call. Wraps muapi.ai's `/ai-clipping` endpoint, which handles transcription, highlight ranking through a virality framework (hook / emotional peak / opinion bomb / revelation / conflict / quotable / story peak / practical value), overlap dedupe, and vertical face-tracking auto-crop server-side. No local Whisper, no local LLM, no GPU.
AI Workflow Builder
Build, run, and visualize multi-step AI generation workflows. The AI architect translates natural language descriptions into connected node graphs — chain image generation, video creation, enhancement, and editing into automated pipelines.
Explore Other Categories
Skills from other categories with shared topics
Markdown to HTML Conversion
Convert Markdown files to HTML similar to `marked.js`, `pandoc`, `gomarkdown/markdown`, or similar tools; or writing custom script to convert markdown to html and/or working on web template systems like `jekyll/jekyll`, `gohugoio/hugo`, or similar web templating systems that utilize markdown documents, converting them to html. Use when asked to "convert markdown to html", "transform md to html", "render markdown", "generate html from markdown", or when working with .md files and/or web a templating system that converts markdown to HTML output. Supports CLI and Node.js workflows with GFM, CommonMark, and standard Markdown flavors.
.NET/C# Best Practices
Ensure .NET/C# code meets best practices for the solution/project.
Act Informed: First understand together with the human, then do
Interactive, input-tool powered, task refinement workflow: interrogates scope, deliverables, constraints before carrying out the task; Requires the Joyride extension.