HTML Color Tool

This tool helps you select and preview colors for HTML and CSS. You can choose background and text colors, check contrast ratios, generate lighter and darker shades, and convert between color formats.

Instructions:

  1. Use the color pickers to select background and text colors.
  2. Preview the selected colors and check the contrast ratio for accessibility.
  3. Adjust the slider to generate lighter and darker shades of the background color.
  4. Click on any color value to copy it to your clipboard.
  5. Use the displayed color values in different formats (HEX, RGB, HSL) for your projects.
Background Color Picker
Text Color Picker
Color Preview
Text Preview

Contrast Ratio: 4.00

Not AA Compliant

Lighter and Darker Shades

Lighter

#ff200d

Darker

#f30000

Color Values

Hex: #ff0000

RGB: 255, 0, 0

HSL: 0.00, 1.00, 0.50, 1.00