Color Code Converter
Convert colors between HEX, RGB, RGBA, HSL, HSLA, HSV and CMYK — pick a color, tweak the alpha, and copy any format instantly.
#FFFFFF
Channels
R
G
B
Color formats
Type any HEX, RGB(A) or HSL(A) value and every other format updates instantly.
Quick palette
Color format guide
HEX is a 6-digit hexadecimal code like #3B82F6 that stores the red, green and blue channels (00–FF each). It is the most common way to define colors in HTML and CSS.
An 8-digit HEX such as #3B82F6CC adds a final pair of digits for opacity (alpha). Use it for transparent colors in modern CSS without a separate rgba() value.
RGB sets a color from red, green and blue values of 0–255, e.g. rgb(59, 130, 246). It matches how screens emit light and is ideal for web and digital design.
RGBA is RGB with an alpha channel from 0 (transparent) to 1 (opaque), e.g. rgba(59, 130, 246, 0.5). Use it for overlays, shadows and hover effects.
HSL describes a color by hue (0–360°), saturation and lightness, e.g. hsl(217, 91%, 60%). It is intuitive for tweaking colors and building palettes by hand.
HSLA is HSL plus an alpha channel for opacity, e.g. hsla(217, 91%, 60%, 0.5). It combines HSL readability with transparency control.
HSV, also called HSB, uses hue, saturation and value (brightness), e.g. hsv(217, 76%, 96%). It is the model behind most design-software color pickers.
CMYK is a subtractive model of cyan, magenta, yellow and black (key) percentages, e.g. cmyk(76%, 47%, 0%, 4%). It is the standard for print, so confirm critical colors with your printer profile.
Use HEX or RGB for websites, and add alpha (RGBA, HSLA or 8-digit HEX) when you need transparency. Reach for HSL or HSV to design palettes, and CMYK when preparing files for print.
Popular searches
color code converter
hex to rgb
rgb to hex
hex to hsl
convert color formats
online color converter
Need help?
Found an issue with this tool? Let our team know.