Back to Tools
RGB to HEX Converter
RGB Value Input
Adjust RGB values or input numbers directly to get the corresponding hexadecimal color code
#4287f5
Color Conversion Results
Format | Value | HTML/CSS | Action |
---|---|---|---|
Hex | 4287f5 | #4287f5 | |
RGB | 66, 135, 245 | rgb(66, 135, 245) | |
HSL | 217°, 90%, 61% | hsl(217, 90%, 61%) | |
HSV | 217°, 73%, 96% | - | |
CMYK | 73, 45, 0, 4 | - |
About RGB and Hexadecimal Colors
RGB Color Model
RGB is an additive color model that creates various colors through different combinations of red (R), green (G), and blue (B) primary colors. Each color channel's value ranges from 0 to 255, where 0 means no color and 255 means maximum intensity.
- RGB(255, 0, 0) is pure red
- RGB(0, 255, 0) is pure green
- RGB(0, 0, 255) is pure blue
- RGB(0, 0, 0) is black
- RGB(255, 255, 255) is white
Hexadecimal Color Codes
Hexadecimal color codes are another way to represent RGB colors, commonly used in CSS and HTML. They start with a # symbol, followed by 6 hexadecimal characters representing the red, green, and blue color channels.
- #FF0000 is pure red
- #00FF00 is pure green
- #0000FF is pure blue
- #000000 is black
- #FFFFFF is white