HTML Color Codes
Welcome to the all-in-one HTML color codes tool. Pick any color and instantly get its hex code, RGB, HSL, and RGBA values, ready to copy straight into your CSS. Whether you’re designing a website, building a brand palette, or just need the right shade of blue, everything you need is right here.
Use the visual color picker to drag and choose a color, generate matching shades and tints, explore harmonies on the color wheel, convert between formats, or browse all 140 named CSS colors. It’s free, works in your browser, and needs no sign-up.
RGB & RGBA
HSL values
Shades & tints
Color wheel
Format converter
140 CSS color names
Color picker
Pick a color and get its code in every format instantly. Click any code card to copy.
100%
Hex → RGB & HSL
RGB → Hex & HSL
HSL → Hex & RGB
Common HTML color codes
The most commonly used HTML colors with their hex, RGB, and HSL values. Click any hex code to copy.
| Color | Name | Hex code | RGB | HSL |
|---|
What are HTML color codes?
HTML color codes are ways of representing colors in a format that web browsers and design tools can interpret. Every color you see on a website — text, backgrounds, borders, icons — is defined by one of these formats. The three most widely used are hex codes, RGB values, and HSL values.
Understanding color codes helps you work more precisely in CSS, pick consistent brand colors, and communicate color choices clearly between designers and developers.
Hex color codes
A hex color code is a six-character string prefixed with #. The six characters are split into three pairs, each representing the red, green, and blue channels of the color. Each pair is a two-digit hexadecimal number — ranging from 00 (0 intensity) to FF (full intensity).
For example, #FF0000 is pure red (full red, no green, no blue). #FFFFFF is white (all channels at full), and #000000 is black (all channels at zero).
RGB color values
RGB stands for Red, Green, Blue. In CSS, it is written as rgb(R, G, B) where each value is a number from 0 to 255. RGB is the same underlying model as hex — the difference is just the notation. Many designers find RGB easier to read and reason about than hex.
For example, rgb(255, 165, 0) is orange. The same color in hex is #FFA500.
HSL color values
HSL stands for Hue, Saturation, Lightness. Hue is a degree on the color wheel (0° = red, 120° = green, 240° = blue). Saturation is a percentage of color intensity. Lightness is a percentage of brightness from black to white.
HSL is particularly useful when you want to create variations of a color — just adjust the lightness to get a shade or tint, or reduce saturation to get a muted tone. For example, hsl(231, 82%, 60%) is a medium blue, and hsl(231, 82%, 80%) is a lighter version of the same hue.
RGBA and HSLA — colors with transparency
Both RGB and HSL have alpha variants — RGBA and HSLA — that add a fourth parameter controlling opacity. The alpha value runs from 0 (fully transparent) to 1 (fully opaque). For example, rgba(67, 97, 238, 0.5) gives a 50% transparent blue.
Frequently asked questions
Common questions about HTML color codes, hex values, and color formats.