Back to Tools

HEX to RGB Converter

Color Preview

#4287f5

RGB: (66, 135, 245)

Share Color
HEX Color Input
Enter a hexadecimal color code to get the corresponding RGB color values
Color Conversion Results
FormatValueHTML/CSSAction
Hex4287f5#4287f5
RGB66, 135, 245rgb(66, 135, 245)
HSL217°, 90%, 61%hsl(217, 90%, 61%)
HSV217°, 73%, 96%-
CMYK73, 45, 0, 4-

About Hexadecimal and RGB Colors

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

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