Menu

Hex Color Conversion

Convert hexadecimal colors to other formats including RGB, HSL, HSV, and OKLCH. Enter a hex color code to see the conversions.

Hex Color Code

RGB

rgb(0, 0, 0)

HSL

hsl(0, 0%, 0%)

HSV

hsv(0, 0%, 0%)

OKLCH

oklch(0 0 0)

About Hex Color Format

Hexadecimal color codes are a way to represent RGB colors using base-16 numbers. Each color channel (red, green, and blue) is represented by two hexadecimal digits, giving a total of six digits preceded by a # symbol.

How to Use This Tool

  1. Enter a hex color code in the input field (e.g., #FF0000 for red).
  2. The color preview will update in real-time.
  3. View the automatic conversions to other color formats (RGB, HSL, HSV, OKLCH).
  4. Click the "Copy" buttons to copy any color format to your clipboard.

Hex Color Format Details

  • Format: #RRGGBB where RR, GG, and BB are two-digit hexadecimal numbers (00-FF).
  • Shorthand: #RGB format is allowed where each digit is duplicated (e.g., #F00 becomes #FF0000).
  • Case-insensitive: Both uppercase and lowercase letters (A-F) are valid.
  • Range: Each channel ranges from 00 (0) to FF (255).

Common Hex Colors

  • Black: #000000
  • White: #FFFFFF
  • Red: #FF0000
  • Green: #00FF00
  • Blue: #0000FF
  • Yellow: #FFFF00
  • Cyan: #00FFFF
  • Magenta: #FF00FF