Skip to content

A CSS value from the fields

Find the opposite hue

The hue is rotated 180 degrees. Saturation and lightness stay.

A gray has no hue, so its complement is the same gray.

The work stays in this tab.

This tool runs in your browser. Turn on JavaScript to use it.

Complement

The sample is fixed. It uses the same rule as the form.

Input
#ff0000
Result
#00ffff

How to use it

  1. 1Edit the text.
  2. 2Read the result beside it.
  3. 3Copy what you need.

Good to know

  • The result is an opaque hex color.
  • This page does not upload the text.
  • Text longer than one hundred thousand characters is rejected.

Questions

Does the result leave this browser?

No. The calculation finishes in the current tab.

What does this page leave out?

The result is an opaque hex color.

What if the input is huge?

Past one hundred thousand characters, the page stops and asks you to shorten it.

Related tools

  • Convert a color

    The same color is written as hex, RGB, or HSL depending on the file. This page parses one of those forms and prints the other two.

  • Mix two colors by a percentage

    0 keeps the first color. 100 is the second color. 50 is the midpoint of each channel.

  • Write a linear-gradient

    The angle runs from 0 to 360 degrees. The two colors are the ends of the gradient.