HTML Color Codes
Get HTML color codes, Hex color codes, RGB and HSL values with our color pickers, color wheel, color chart and HTML color names.
Color Picker
Find any color and its shades, tints, tones and harmonies. Input Hex codes, RGB and HSL values.
Pick a colorImage Color Picker
Extract colors and palettes from any uploaded image. Click to capture exact color values instantly.
Extract colorsColor Shades
Browse shades from lightest to darkest across 9 color families. Click any shade to copy its hex code.
Browse shadesColor Chart
Sample colors from four preset web design palettes: Tailwind, Flat, Material Design and Web Safe.
View the chartsColor Names
Browse all 140 named CSS colors and other lists including Minecraft, Bukkit and Roblox color codes.
Browse the listColor Mixer
Mix two colors together to find the perfect blend for your design project.
Mix colorsColor Picker
Drag the selector or use the hue slider to pick any color. Get Hex, RGB, HSL values instantly.
Harmonies
Common HTML Color Codes
Click any row or hex code to copy it to your clipboard instantly.
| Color | Name | Hex Code | RGB Code | HSL Code |
|---|
Color Shades
Browse shades from lightest to darkest. Click any shade to copy its hex code.
Color Converters
Convert between any color format instantly.
RGB to Hex
Convert RGB color values to Hex color codes for use in HTML and CSS.
Hex to RGB
Convert Hex color codes to RGB values for use in CSS and design tools.
Contrast Checker
Check WCAG contrast ratios for text and background color combinations.
Color Mixer
Mix two colors together to find the perfect blend for your design project.
What are HTML color codes?
Color codes are ways of representing the colors we see every day in a format that a computer can interpret and display. Commonly used in websites and other software applications, there are a variety of formats, including Hex color codes, RGB and HSL values, and HTML color names, amongst others.
Hex color codes
The most popular are Hex color codes — three byte hexadecimal numbers (meaning they consist of six digits), with each byte, or pair of characters in the Hex code, representing the intensity of red, green and blue in the color respectively.
Hex code byte values range from 00 (lowest intensity) to FF (highest intensity). The color white, for example, is made by mixing each of the three primary colors at full intensity, resulting in the Hex color code of #FFFFFF. Black is the complete opposite: #000000.
RGB color codes
RGB color codes represent colors using three integers from 0 to 255 for red, green, and blue channels. For example, rgb(255, 0, 0) is pure red, while rgb(0, 0, 255) is pure blue. With modern browsers supporting 24-bit color, there are over 16.7 million possible color combinations.
Hex Code Breakdown
Primary Colors
🔄 RGB to Hex
🎨 Hex to RGB
⚖️ Contrast Checker
🧪 Color Mixer
🖼️ Image Color Picker
Upload an image and click anywhere on it to extract the color at that point.
Upload an image above