Color Picker


CSS Color

About Color Picker

Color Picker: Pick a Color and Get Its CSS Code

Use the color picker above to choose any color. The CSS Color field shows the code of the color you selected, so you can copy it into your stylesheet.

Common Color Formats

  • HEX: a short code starting with #, for example #3498db.
  • RGB: three numbers from 0 to 255 for red, green, and blue, for example rgb(52, 152, 219).
  • HSL: hue, saturation, and lightness, for example hsl(204, 70%, 53%).

All of these describe the same color, and browsers show them the same way.

How to Use the Tool

  1. Click or drag in the color picker to choose a color.
  2. Read the color code shown in the CSS Color field.
  3. Copy it and paste it into your stylesheet or design tool.

Tips for Choosing Colors

  • Make sure text stands out from its background. The accessibility guidelines (WCAG) suggest a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text.
  • Use a small set of colors consistently across your site.
  • Store your main colors in CSS variables, so you can change them in one place.

Frequently Asked Questions

Which color format should I use?

Any of them works. Use the one that is easiest for your project.

Is this tool free?

Yes, it is free to use. To convert between formats, try our Hex to RGB Converter or our RGB to Hex Converter.