Free Color Picker & Palette Generator
Pick colors, convert between HEX/RGB/HSL, and generate harmonious palettes.
RGB
HSL
More formats
WCAG contrast
Closest named color: dodgerblue Β· Black text is easier to read here (5.71:1)
Shades & tints (50β950)
Color palette
Complementary
Triadic
Analogous
Monochromatic
Common uses
- Color Picker for Web DesignPick and generate colours for your website β get HEX, RGB, and HSL values plus harmonious palettes.
- Color Picker for BrandingBuild your brand colour palette β pick primary, secondary, and accent colours that work together.
- Color Picker for Social MediaCreate eye-catching colour palettes for social media posts, stories, and profile designs.
- Color Picker for Print DesignPick colours for printed materials β flyers, business cards, brochures β with accurate colour previews.
- Color Picker for PresentationsDesign slide colour schemes β pick readable text colours, chart palettes, and consistent accent shades.
How It Works
Everything runs directly in your browser using hand-written conversion math β no color library, no server round-trip. You pick a color via the browser's native color input or the EyeDropper API, and the tool instantly converts it into six formats while also computing WCAG contrast ratios and generating harmony palettes.
- 1Color input via native APIYou choose a color through the browser's built-in <input type="color"> widget, or β in Chromium-based browsers β the EyeDropper API lets you sample any pixel on your screen. Both paths return a hex string that becomes the single source of truth.
- 2Hand-written format conversionsThe tool converts the hex value into RGB, HSL, HSV, CMYK, and OKLCH using its own math functions (no external library). The OKLCH conversion linearizes the sRGB channels, applies the OKLab cube-root matrix, then derives chroma and hue angle β matching modern CSS Color Level 4 output.
- 3WCAG contrast ratio calculationRelative luminance is computed from the linearized RGB channels using the WCAG 2.x formula. The tool then calculates contrast ratios against pure white and pure black and labels them AA-large, AA, AAA, or Fail according to the WCAG thresholds (3:1, 4.5:1, 7:1).
- 4Harmony palette generation and local saveComplementary, triadic, analogous, and monochromatic swatches are derived by rotating or stepping the HSL hue and lightness values mathematically. Saved palettes are written to localStorage in your browser β nothing leaves your device.
Related Tools
Random Color Generator
Generate random colours one at a time or as a palette of five, lock the ones you like, copy HEX, RGB or HSL values and export the palette as PNG or CSS.
Color Converter
Convert colors between HEX, RGB, HSL, HSV, and CMYK formats instantly. Includes a lightness scale and preset swatches.
Image Color Palette Extractor
Extract the dominant colors from any image using k-means color quantization. Get hex codes for the top 2-16 colors in your photo or logo.