- Blog Categories
- Project Management
- Agile Management
- IT Service Management
- Cloud Computing
- Business Management
- BI And Visualisation
- Quality Management
- Cyber Security
- DevOps
- Most Popular Blogs
- PMP Exam Schedule for 2026: Check PMP Exam Date
- Top 60+ PMP Exam Questions and Answers for 2026
- PMP Cheat Sheet and PMP Formulas To Use in 2026
- What is PMP Process? A Complete List of 49 Processes of PMP
- Top 15+ Project Management Case Studies with Examples 2026
- Top Picks by Authors
- Top 170 Project Management Research Topics
- What is Effective Communication: Definition
- How to Create a Project Plan in Excel in 2026?
- PMP Certification Exam Eligibility in 2026 [A Complete Checklist]
- PMP Certification Fees - All Aspects of PMP Certification Fee
- Most Popular Blogs
- CSM vs PSM: Which Certification to Choose in 2026?
- How Much Does Scrum Master Certification Cost in 2026?
- CSPO vs PSPO Certification: What to Choose in 2026?
- 8 Best Scrum Master Certifications to Pursue in 2026
- Safe Agilist Exam: A Complete Study Guide 2026
- Top Picks by Authors
- SAFe vs Agile: Difference Between Scaled Agile and Agile
- Top 21 Scrum Best Practices for Efficient Agile Workflow
- 30 User Story Examples and Templates to Use in 2026
- State of Agile: Things You Need to Know
- Top 24 Career Benefits of a Certifed Scrum Master
- Most Popular Blogs
- ITIL Certification Cost in 2026 [Exam Fee & Other Expenses]
- Top 17 Required Skills for System Administrator in 2026
- How Effective Is Itil Certification for a Job Switch?
- IT Service Management (ITSM) Role and Responsibilities
- Top 25 Service Based Companies in India in 2026
- Top Picks by Authors
- What is Escalation Matrix & How Does It Work? [Types, Process]
- ITIL Service Operation: Phases, Functions, Best Practices
- 10 Best Facility Management Software in 2026
- What is Service Request Management in ITIL? Example, Steps, Tips
- An Introduction To ITIL® Exam
- Most Popular Blogs
- A Complete AWS Cheat Sheet: Important Topics Covered
- Top AWS Solution Architect Projects in 2026
- 15 Best Azure Certifications 2026: Which one to Choose?
- Top 22 Cloud Computing Project Ideas in 2026 [Source Code]
- How to Become an Azure Data Engineer? 2026 Roadmap
- Top Picks by Authors
- Top 40 IoT Project Ideas and Topics in 2026 [Source Code]
- The Future of AWS: Top Trends & Predictions in 2026
- AWS Solutions Architect vs AWS Developer [Key Differences]
- Top 20 Azure Data Engineering Projects in 2026 [Source Code]
- 25 Best Cloud Computing Tools in 2026
- Most Popular Blogs
- Company Analysis Report: Examples, Templates, Components
- 400 Trending Business Management Research Topics
- Business Analysis Body of Knowledge (BABOK): Guide
- ECBA Certification: Is it Worth it?
- Top Picks by Authors
- Top 20 Business Analytics Project in 2026 [With Source Code]
- ECBA Certification Cost Across Countries
- Top 9 Free Business Requirements Document (BRD) Templates
- Business Analyst Job Description in 2026 [Key Responsibility]
- Business Analysis Framework: Elements, Process, Techniques
- Most Popular Blogs
- Best Career options after BA [2026]
- Top Career Options after BCom to Know in 2026
- Top 10 Power Bi Books of 2026 [Beginners to Experienced]
- Power BI Skills in Demand: How to Stand Out in the Job Market
- Top 15 Power BI Project Ideas
- Top Picks by Authors
- 10 Limitations of Power BI: You Must Know in 2026
- Top 45 Career Options After BBA in 2026 [With Salary]
- Top Power BI Dashboard Templates of 2026
- What is Power BI Used For - Practical Applications Of Power BI
- SSRS Vs Power BI - What are the Key Differences?
- Most Popular Blogs
- Data Collection Plan For Six Sigma: How to Create One?
- Quality Engineer Resume for 2026 [Examples + Tips]
- 20 Best Quality Management Certifications That Pay Well in 2026
- Six Sigma in Operations Management [A Brief Introduction]
- Top Picks by Authors
- Six Sigma Green Belt vs PMP: What's the Difference
- Quality Management: Definition, Importance, Components
- Adding Green Belt Certifications to Your Resume
- Six Sigma Green Belt in Healthcare: Concepts, Benefits and Examples
- Most Popular Blogs
- Latest CISSP Exam Dumps of 2026 [Free CISSP Dumps]
- CISSP vs Security+ Certifications: Which is Best in 2026?
- Best CISSP Study Guides for 2026 + CISSP Study Plan
- How to Become an Ethical Hacker in 2026?
- Top Picks by Authors
- CISSP vs Master's Degree: Which One to Choose in 2026?
- CISSP Endorsement Process: Requirements & Example
- OSCP vs CISSP | Top Cybersecurity Certifications
- How to Pass the CISSP Exam on Your 1st Attempt in 2026?
- Most Popular Blogs
- Top 7 Kubernetes Certifications in 2026
- Kubernetes Pods: Types, Examples, Best Practices
- DevOps Methodologies: Practices & Principles
- Docker Image Commands
- Top Picks by Authors
- Best DevOps Certifications in 2026
- 20 Best Automation Tools for DevOps
- Top 20 DevOps Projects of 2026
- OS for Docker: Features, Factors and Tips
- More
- Agile & PMP Practice Tests
- Agile Testing
- Agile Scrum Practice Exam
- CAPM Practice Test
- PRINCE2 Foundation Exam
- PMP Practice Exam
- Cloud Related Practice Test
- Azure Infrastructure Solutions
- AWS Solutions Architect
- IT Related Pratice Test
- ITIL Practice Test
- Devops Practice Test
- TOGAF® Practice Test
- Other Practice Test
- Oracle Primavera P6 V8
- MS Project Practice Test
- Project Management & Agile
- Project Management Interview Questions
- Release Train Engineer Interview Questions
- Agile Coach Interview Questions
- Scrum Interview Questions
- IT Project Manager Interview Questions
- Cloud & Data
- Azure Databricks Interview Questions
- AWS architect Interview Questions
- Cloud Computing Interview Questions
- AWS Interview Questions
- Kubernetes Interview Questions
- Web Development
- CSS3 Free Course with Certificates
- Basics of Spring Core and MVC
- Javascript Free Course with Certificate
- React Free Course with Certificate
- Node JS Free Certification Course
- Data Science
- Python Machine Learning Course
- Python for Data Science Free Course
- NLP Free Course with Certificate
- Data Analysis Using SQL
- Home
- Blog
- Web Development
- HTML Color Codes and Names [with Example]
HTML Color Codes and Names [with Example]
Updated on Mar 17, 2026 | 240 views
Share:
In web design, color is one of the most important elements to consider. Colors affect how a website looks and looks but also influence how users feel and behave when they visit your site. This is why it's important to be familiar with all the different HTML color names and their corresponding RGB values. This guide will provide a complete overview and concept of the HTML colors you need to know, along with the HTML color code tools. We'll also provide some HTML color-related terms to use colors effectively in your web designs. So let's get started!
What is a HTML Color Code?
An HTML color code identifies a color on the web and within other digital assets. Common color codes are in the forms of a keyword name, a hexadecimal value, a RGB (red, green, blue) triplet, or a HSL (hue, saturation, lightness) triplet.
For example, the color red can be identifier using the following formats:
- red (keyword name)
- #ff0000 (hex)
- (255,0,0) (RGB)
- (0, 100%, 50%) (HSL)
HTML Color Names Supported by All Browsers
When it comes to HTML, there are a lot of different color options available. There are 140 different color names that are supported by all browsers! These colors are sorted into different color groups so that you can easily find the perfect color for your website. Keep reading to learn more about the different colors in HTML.
The 140 Different Color Names Supported by All Browsers are Sorted by Color Groups. Here is the HTML colors list below.
- White
- Gray
- Black
- Red
- Green
- Blue
- Yellow
- Brown
- Orange
- Pink
- Purple
As you can see, a wide range of HTML color codes is listed. Whether you want a simple white or black background for your website or something more eye-catching like green or yellow, there is a color for you. Always consider the overall design of your website when choosing a color. Too many colors can be overwhelming and make your site look cluttered. Stick to one or two colors for a clean and polished look.
If you now think you know everything you need about HTML, why not test your skills now? But how?? It would be best to take an Angular Certification Exam and prove your skills here. So, get ready and level up your coding game.
HTML Color-related Terms
Ever wondered what those color-related HTML terms mean? Well, wonder no more! Here is a comprehensive guide to everything you need to know about HTML color codes, color name lists and more.
1. RGB Code
RGB code is a 6-digit representation of a color. Color values are expressed as the first two digits representing red, the next two digits representing green, and the last two digits representing blue. For example, RGB(255, 0, 0) is red, RGB(0, 255, 0) is green, RGB(0, 0 ,255) is blue, and so on.
2. HSL Code
HSL code is also a 6-digit representation of a color. HSL stands for hue, saturation, and lightness. The first two digits represent the hue (the shade of the color), the next two digits represent the saturation (how much white or black is mixed in), and the last two digits represent the lightness (how light or dark the color is).
For example, HSL(0, 100%, 50%) is red, HSL(120, 100%, 50%) is green, HSL(240 ,100%, 50%)is blue.
3. HEX Code
HEX code is a 6-digit representation of a color. The hex code to color name starts with a pound character (#) and is followed by six hexadecimal characters, ranging from 0-9 or A-F. For example, #000000 is black, #FFFFFF is white, #FF0000 is red, #00FF00 is green, and so on.
4. Color Names
There are 140 different color names that you can use in HTML. This color name list includes common colors like black and white and less common ones like burlywood and mediumpurple.
These are all the major terms when we talk about HTML color codes and names. But there is a lot to these and many other terms related to HTML color codes. Front End Masters Bootcamp is one of the best ways to get acquainted with some of the best vocabularies of HTML and front-end tools. Why wait? Enroll now and boost your skills.
What is Hex Code?
Hex code is a six-digit, hexadecimal numbering system used for specifying colors. The numbers 0-9 represent values zero to nine, and the letters A-F represent values ten to fifteen. To specify a color, three bytes are needed. The first byte represents the red color component, the second byte represents the green color component, and the third byte represents the blue color component. For example, the red color can be specified as #FF0000, with the first byte representing the red component set to FF (full intensity).
The result is pure white when all three components are set to FF. Colors can also be specified using a four-byte format, where the fourth byte represents the alpha channel. The alpha channel defines how opaque or transparent color should be and can have a value between 00 (fully transparent) and FF (fully opaque). Hex code is often used in web and graphic design as it provides various possibilities for creating custom colors.
Source: digital.gov
Color Codes Based on HSL Triplet
How to Use Color Code in HTML
Below are the script on how to use color codes in HTML practically:
<html>
<head>
<title>Shades of Red Colors</title>
</head>
<body>
<h1>Welcome To KnowledgeHut</ h1>
<h2 style="background-color:#FFA07A;">#FFA07A</h2>
<h2 style="background-color:#FA8072;">#FA8072</h2>
<h2 style="background-color:#FF0000;">#FF0000</h2>
<h2 style="background-color:#8B0000;">#8B0000</h2>
</body>
</html>
How to Change the Font Type, Size, and Color on a Web Page?
Fortunately, changing the font type, size, and color on a web page is easy. For example, let's say you want to make the text on your blog larger and easier to read. To do this, simply find the HTML tag that contains the text you want to change. It will look like this: <p>This is some sample text</p>. Once you've found the tag, add the following attribute: style="font-size:14px;". This will increase the size of the font to 14 pixels.
If you want to change the color of the text, simply add the "color" attribute with a hex code for the desired color. For example, if you want to change the text to blue, you would use this code: style="color:#0000FF;".
Finally, if you want to change the text's typeface, you can use the "font-family" attribute. For example, to use the Arial font, you would use this code: style="". With a few simple changes to your HTML code, you can easily customize the appearance of your web page.
HTML Color Code Tools
Now, we'll take a look at some of the best tools related to color code in HTML to help make your life a little easier.
1. ColorZilla
ColorZilla is a Mozilla Firefox extension that allows you to get the hex code for any color on a web page. Simply click on the ColorZilla icon and then hover over the color you want to inspect. The hex code will be displayed in a tooltip. ColorZilla also has a nifty palette viewer that lets you view all the colors used on a web page. This can be helpful if you're trying to match colors or find out what colors are used on a particular site.
2. Chrome dev tools
Chrome dev tools are a set of web development tools built into Google Chrome. To access Chrome dev tools, simply open up Chrome and navigate to View > Developer > JavaScript Console or press Ctrl+Shift+J (Windows) or Cmd+Opt+J (Mac). Once you've opened the console, click on the Elements tab and then hover over the element you want to inspect. The hex code for the element will be displayed in the bottom right-hand corner of the screen.
3. Adobe Color CC
Adobe Color CC is an online color picker that lets you upload an image and then extract colors from it. This can be helpful if you're trying to match colors from an existing image or create a color scheme based on an image. Adobe Color CC also has several preset color schemes that you can use for inspiration.
There are many different tools for color codes for HTML available, but these three are some of the best. Whether you're looking for a quick way to get the hex code for color or want to create a custom color scheme, these tools will help you get the job done. So next time you're working on a website or web application, be sure to give them a try.
Unlock Your Potential: Dive into Computer Programming Courses for Beginners and Master the Art of Coding. Start Your Journey Today!
Conclusion
So there you have it, our complete guide to HTML color names list and HTML color codes. We hope this has been helpful and that you feel confident using colors to enhance your web pages. If you have any questions or feedback, please don’t hesitate to reach out to us, we love hearing from our readers! And finally, check out our other posts for more tips related to Certificate Web Development and design.
977 articles published
KnowledgeHut is an outcome-focused global ed-tech company. We help organizations and professionals unlock excellence through skills development. We offer training solutions under the people and proces...
Get Free Consultation
By submitting, I accept the T&C and
Privacy Policy
