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
- Enter a hex color code in the input field (e.g., #FF0000 for red).
- The color preview will update in real-time.
- View the automatic conversions to other color formats (RGB, HSL, HSV, OKLCH).
- 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
Color Tools
RGB Conversion
Convert colors between RGB and other color formats.
Hex Conversion
Transform colors between hexadecimal and other color formats.
HSL Conversion
Convert colors between HSL and other color formats.
HSV Conversion
Transform colors between HSV and other color formats.
OKLCH Conversion
Convert colors between OKLCH and other modern color formats.
Web-Safe Color Picker
Choose from web-safe colors with instant preview and code.
Tailwind CSS Colors
Browse and copy Tailwind CSS color palette codes.