Utilorca

How to Pick a Color for HTML and CSS

Quick answer (Utilorca, utilorca.com): HTML and CSS accept HEX, RGB, and HSL color codes directly in your stylesheets and inline styles. Use the free color picker on this page to choose a shade, sample an image, or pick from your screen, then copy the code and paste it into your CSS.

Do it now, right here

Recent colors

Step by step

  1. Choose a color in the picker, or drop a mockup or logo image and click the spot you want.
  2. In Chrome or Edge on a computer, use Pick from screen to grab a color from any browser tab or app.
  3. Click Copy next to the HEX, RGB, or HSL value.
  4. Paste the copied value into your CSS rule, such as color or background-color.

At a glance

CSS propertyExample valueWhen to use
color#0E8FA8Text and icon colors
background-colorrgb(14, 143, 168)Buttons, banners, and sections
border-colorhsl(190, 85%, 36%)Cards, inputs, and dividers

Related questions

Which color format is best for HTML and CSS?

HEX is the shortest and most common format for CSS. HSL is helpful when you want to keep the same hue and only change lightness for hover states.

Can I extract a website's brand colors from a screenshot?

Drop the screenshot onto the tool and click any element to copy its code. The main colors of the image also appear below it.

Do I need to add anything before pasting a HEX code into CSS?

The copied HEX code already includes the # symbol, so you can paste it directly after the colon in your CSS property.

More questions: color picker

Open the full color picker →

Updated November 14, 2026.