12 widgets · free · no ads

Free Design & Colour Widgets

Colour contrast, colour conversion, gradient, palette, aspect-ratio and px-to-rem widgets for design tutorials and style guides.

Who these are for

Designers, front-end developers and design-system documentation.

Common uses

  • A WCAG contrast check in an accessibility guide
  • A colour converter and palette generator in a style guide
  • A px-to-rem table in CSS documentation

How embedding works

Pick a widget, set the theme and size, copy one line of HTML and paste it into your page. It runs in its own frame, so it cannot clash with your site's styles, and it resizes itself if you use the loader.

  • WCAG 2.x contrast ratio of two colours, AA/AAA results and the nearest passing shade.

    Get code
  • Colour Converter

    Design Converter

    Convert any colour between HEX, RGB, HSL, HSV and CMYK, with a swatch and copy buttons.

    Get code
  • CSS Gradient Generator

    Design Generator

    Build a linear or radial CSS gradient with 2-5 colour stops and copy the code.

    Get code
  • Colour Palette Generator

    Design Generator

    Complementary, analogous, triadic, split, tetradic and monochrome palettes from one colour.

    Get code
  • Aspect Ratio Calculator

    Design Calculator

    Simplify width x height to a ratio and resize to a new width or height without distortion.

    Get code
  • PX to REM Converter

    Design Converter

    Convert pixels to rem (and back) for any root font size, with a table of common sizes.

    Get code
  • DPI & Print Size Calculator

    Design Converter New

    Pixels to print size at any DPI and back, plus the largest sharp print at 300, 240 and 150 DPI.

    Get code
  • PPI Calculator

    Design Calculator New

    Pixel density and dot pitch of any screen from its resolution and diagonal, with labelled presets.

    Get code
  • Screen Size Calculator

    Design Calculator New

    Width, height and area of a screen from its diagonal and aspect ratio, and two screens compared.

    Get code
  • Golden Ratio Calculator

    Design Calculator New

    Split any length by the golden ratio, find the missing side, and list golden sizes and type steps.

    Get code
  • Type Scale Calculator

    Design Generator New

    A modular type scale in px and rem from a base size and ratio, with a live preview and CSS variables.

    Get code
  • Colour Blindness Simulator

    Design Tool New

    How up to six colours look with protanopia, deuteranopia, tritanopia and achromatopsia, with clashes flagged.

    Get code

How to add a widget

Open a widget, choose the theme, width and style, check the live preview, then copy the code. Paste it into an HTML or "Custom code" block on your site - step-by-step instructions for each platform.

Preview