Color Converter

    Convert colors & generate palettes.

    Pick Color

    Color Values

    Contrast Checker

    Background
    #131711
    Foreground
    #8FB381

    Preview Title

    The quick brown fox jumps over the lazy dog. Use this section to verify readability.

    8.42Contrast Ratio
    AAA
    AA

    Palettes

    Complementary
    Analogous
    Monochromatic

    How to Use

    1. 1

      Pick a Color

      Use the gradient picker or enter a HEX code.

    2. 2

      Check Palettes

      View generated Complementary and Analogous colors.

    3. 3

      Test Contrast

      Ensure your color is accessible against a background.

    HEX, RGB, HSL and CMYK Color Formats

    This color converter takes a HEX color code and shows the same color as RGB, HSL and CMYK values, builds matching palettes, and checks its contrast against a background color.

    How the formats relate

    • HEX writes red, green and blue as pairs of hexadecimal digits from 00 to FF (0–255). The HEX field accepts 6-digit codes and 3-digit shorthand, where #0AF means #00AAFF, with or without the #. 8-digit codes with alpha are not supported.
    • RGB is the same three channels as decimal numbers, for example rgb(143, 179, 129).
    • HSL describes hue as an angle from 0 to 360° plus saturation and lightness percentages, which makes a color easy to lighten or darken by hand. Values are rounded to whole numbers, so converting back can shift a channel slightly.
    • CMYK gives ink percentages using the basic mathematical formula, not an ICC color profile. Treat it as a starting point and confirm against your printer's profile.
    • CSS Name appears only when the color exactly matches one of the 16 basic CSS color keywords, such as navy or teal.

    Palettes and contrast

    Complementary rotates the hue by 180°. Analogous adds the colors 30° either side of yours. Monochromatic gives five shades by moving lightness 10 and 20 points in each direction.

    The contrast checker uses the WCAG 2 relative luminance formula. Its AA badge passes at 4.5:1 and AAA at 7:1, the thresholds for normal-size text. WCAG separately asks for 3:1 between user interface components or meaningful graphics and their surroundings. Don't rely on color alone to carry meaning; pair error or success colors with text or an icon.

    Frequently Asked Questions

    A hexadecimal representation of Red, Green, and Blue intensities.

    WCAG recommends at least 4.5:1 for normal text and 3:1 for large text.

    Related Tools