Back to Home
Published: June 2026By Web Util Slyce Team10 min read

HTML Color Codes — Complete Color Reference

A comprehensive reference for HTML and CSS color codes including hex values, RGB, and HSL. Convert between any color format with our Color Converter or generate palettes with the Color Palette Generator.

Common Color Codes

ColorNameHexCommon Use
White#FFFFFFBackgrounds, text on dark themes
Black#000000Text, borders
Gray#808080Disabled elements, secondary text
Red#FF0000Errors, danger alerts, required indicators
Green#008000Success, confirmations, valid feedback
Blue#0000FFLinks, primary actions, info alerts
Yellow#FFFF00Warnings, highlights
Orange#FFA500Medium warnings, call-to-action

All Named Colors

CSS named colors (also called X11 colors) with their hex, RGB, and HSL equivalents.

Red

SwatchNameHex
Red#FF0000
Crimson#DC143C
Firebrick#B22222
Dark Red#8B0000

Orange

SwatchNameHex
Orange Red#FF4500
Tomato#FF6347
Dark Orange#FF8C00
Orange#FFA500

Yellow

SwatchNameHex
Gold#FFD700
Yellow#FFFF00
Khaki#F0E68C

Green

SwatchNameHex
Lime#00FF00
Green#008000
Forest Green#228B22
Sea Green#2E8B57
Medium Sea Green#3CB371

Cyan

SwatchNameHex
Teal#008080
Dark Cyan#008B8B
Aqua#00FFFF
Turquoise#40E0D0

Blue

SwatchNameHex
Sky Blue#87CEEB
Steel Blue#4682B4
Dodger Blue#1E90FF
Navy#000080

Purple

SwatchNameHex
Indigo#4B0082
Purple#800080
Dark Magenta#8B008B
Violet#EE82EE

Pink

SwatchNameHex
Pink#FFC0CB
Hot Pink#FF69B4
Deep Pink#FF1493

White

SwatchNameHex
White#FFFFFF
Snow#FFFAFA

Gray

SwatchNameHex
Silver#C0C0C0
Gray#808080
Dim Gray#696969
Dark Slate Gray#2F4F4F

Black

SwatchNameHex
Black#000000

Brown

SwatchNameHex
Brown#A52A2A
Sienna#A0522D
Chocolate#D2691E

Color Format Conversion

FormatExampleRangeUse Case
Hex#FF573300-FF per channelHTML, CSS, design tools
RGBrgb(255, 87, 51)0-255 per channelCSS, canvas, programmatic
RGBArgba(255, 87, 51, 0.5)RGB + 0-1 alphaTransparency in CSS
HSLhsl(11, 100%, 60%)H:0-360, S/L:0-100%Intuitive color adjustments
HSLAhsla(11, 100%, 60%, 0.5)HSL + 0-1 alphaTransparent color variations
Namedtomato147 CSS named colorsQuick, readable inline styles