When to use it
Use this tool to choose a color and get its codes for websites, apps, slides or design tools. It also shows lighter and darker versions, colors that go well with it, and whether white or black text will be readable on top of it. It is useful for designers, developers, students and anyone building a simple brand.
How to use it
- Click the large color box marked Tap to pick to open your device’s color picker, or type any color in Or type any color.
- Move the Opacity slider if you need a see-through color.
- Under Color codes, copy the HEX, RGB, HSL or CSS variable with its Copy button.
- Under Shades and tints, tap a swatch to switch to a darker or lighter version.
- Under Matching colors, see Complementary, Analogous, Triadic and Split complementary colors. Tap one to use it.
- Check Text contrast (WCAG) to see how readable white and black text are on your color.
Worked example
You want a blue for buttons on a website. Type #1D4ED8. The codes are rgb(29, 78, 216) and hsl(224, 76%, 48%). The contrast check shows 6.70:1 for white text, which passes AA, and 3.13:1 for black text, which is only good for large text. So white text on this blue is the right choice for buttons.
For a hover effect, tap one of the darker shades. For a second accent color, look at the complementary color, which sits on the opposite side of the color wheel.
Using the codes
Paste the HEX code into design apps such as Canva or Figma. Use the RGB or HSL value in CSS, or copy the CSS variable line into your stylesheet and rename it to suit your project.
Tips
- Check contrast early. A color that looks good may still be hard to read with text on top.
- Use shades for a set. Picking a light tint for backgrounds and a dark shade for text keeps a design consistent.
- Keep a short palette. One main color, one accent and a few greys is enough for most projects.
Common mistakes
- Relying on color alone. Some people cannot tell red from green. Add text or icons to show meaning.
- Copying codes by hand. One wrong letter changes the color. Use the copy buttons.
- Forgetting the opacity. A semi-transparent color looks different on light and dark backgrounds.