FormatForge logoFormatForge

Developer Tools

Color Picker Online Free

Choose a colour visually and copy equivalent HEX, RGB and HSL values for CSS, UI design, themes and design-system documentation.

Color conversion & contrast workspace

Pick or enter a color, convert it to common CSS formats and check readable text contrast against white and black.

Sample textRecommended white text

HEX

#2563eb

RGB

rgb(37, 99, 235)

HSL

hsl(221, 83%, 53%)

CSS variable

--brand-color: #2563eb;

Complement

#da9c14

White text

5.17:1

AA normal PassAA large Pass
Black text

4.06:1

AA normal FailAA large Pass
WCAG quick reference: 4.5:1 is the common AA threshold for normal text, while 3:1 can qualify for large text. Contrast here is calculated against pure white and pure black only.

About Color Picker

Color Picker lets developers and designers choose a colour visually and copy equivalent HEX, RGB and HSL values. HEX is convenient for compact CSS declarations, RGB maps directly to red, green and blue channels, and HSL can be easier when adjusting hue, saturation or lightness for a design system. The tool helps translate one selected colour into formats used by CSS, design tokens and UI documentation.

Key Features

Choose colours with the native browser picker
Copy HEX colour values
Copy RGB values
Copy HSL values
Preview the selected colour
Use output directly in CSS

How to Use

  1. Open the colour control and choose the desired shade.
  2. Review the generated HEX, RGB and HSL values.
  3. Copy the format required by your stylesheet or design system.
  4. Check contrast against foreground and background colours before publishing.

Practical Example

Input

Selected colour: #2563eb

Output

HEX: #2563eb
RGB: rgb(37, 99, 235)
HSL: hsl(221, 83%, 53%)

Popular Use Cases

Create CSS colours for buttons and links
Document brand colours in multiple formats
Prepare design tokens for a component library
Compare lightness values while building themes
Copy colours from prototypes into code
Choose consistent chart and dashboard colours

Best Practices

  • Check text contrast against WCAG accessibility guidance.
  • Store recurring colours as CSS custom properties or design tokens.
  • Avoid relying on colour alone to communicate an error or status.
  • Test colours on real screens and in both light and dark themes.

Common Mistakes

  • Choosing a visually attractive colour without checking contrast.
  • Using slightly different hard-coded colours across components.
  • Confusing RGB channel values with percentages.
  • Assuming the same colour will look identical on every display.

Privacy and Processing

The selected colour is converted between formats inside your browser. No image, design file or colour value needs to be uploaded for this tool.

Important limitation: The picker converts colour formats but does not calculate full colour palettes, simulate every form of colour-vision deficiency or certify accessibility compliance.

Frequently Asked Questions

What is a HEX colour?

HEX represents red, green and blue channels using hexadecimal values, such as #2563eb.

What is the difference between RGB and HSL?

RGB uses channel intensity values, while HSL describes hue, saturation and lightness, which can be easier for controlled adjustments.

Can these values be used in CSS?

Yes. Modern CSS supports HEX, rgb() and hsl() colour syntax.

Does the picker support transparency?

This basic picker focuses on opaque colours. Use rgba() or hsla()/modern alpha syntax when transparency is required.

How do I know whether text is readable on the colour?

Use a dedicated contrast checker and test normal, hover, disabled and focus states.

Are selected colours stored?

No. Conversion happens locally in the browser.

Related Developer Tools