Skip to content
/ RGB Public

A simple RGB color converter web app that takes red, green, and blue input values and uses an external API to display the corresponding color name and its HEX, HSL, HSV, CMYK, and XYZ values.

Notifications You must be signed in to change notification settings

lcomeau01/RGB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

🎨 RGB Converter

RGB Converter is a web-based color tool built to practice using JavaScript and working with external APIs. This app allows users to input RGB color values and instantly retrieve a rich set of color data via the The Color API.

Features

  • Input RGB values to generate and view the corresponding color
  • Fetches detailed color data using The Color API
  • Displays:
    • Color Name
    • HEX Value
    • HSL, HSV, CMYK, and XYZ representations
  • Dynamically updates a color preview square on the page

How It Works

  1. Enter red, green, and blue values (from 0 to 255).
  2. Click Convert.
  3. The background color updates to the correct shade, and API results are shown including:
    • The color name
    • Various color format values (HEX, HSL, HSV, etc.)

File Overview

index.html

  • Includes form inputs for RGB values
  • Displays the color output and values dynamically
  • Contains embedded JavaScript that handles logic and fetches API data

style.css

  • Styles form elements, color output, and page layout

About

A simple RGB color converter web app that takes red, green, and blue input values and uses an external API to display the corresponding color name and its HEX, HSL, HSV, CMYK, and XYZ values.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published