HTML Color Codes — Hex Colors, RGB, HSL & Color Names
✓ Copied to clipboard!

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

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

# FF 5A 33
Red Green Blue

Primary Colors

Red
#FF0000
Lime
#00FF00
Blue
#0000FF

🔄 RGB to Hex

#F54927

🎨 Hex to RGB

rgb(245, 73, 39)

⚖️ Contrast Checker

21.00 : 1
AA Normal ✓ AA Large ✓ AAA Normal ✓ AAA Large ✓
Sample Text — The quick brown fox

🧪 Color Mixer

#BE9F8D

🖼️ Image Color Picker

Upload an image and click anywhere on it to extract the color at that point.

Upload an image above

Scroll to Top