Skip to main content

Color Converter

Free online tool supporting conversion between HEX, RGB, and HSL color formats.

#3498DB

🎨 색상 선택

HEX

웹에서 가장 많이 사용

RGB

HSL

🎨 미리 설정된 색상

HEX, RGB, HSL 색상 형식 간 변환을 지원합니다. 색상 피커로 직접 색상을 선택하거나, 값을 직접 입력할 수 있습니다.

What are Color Formats?

There are various ways to represent colors in digital environments. Each format has specific uses and advantages, and you should choose the appropriate format based on the situation.

Key Features

  • 3 Format Support: HEX, RGB, HSL
  • Real-time Conversion: All formats update automatically when one format changes
  • Color Picker: Visually select colors
  • Large Preview: View selected color in large format
  • Instant Copy: Copy each format with one click
  • Preset Colors: 10 popular colors provided

Color Format Explanation

HEX (Hexadecimal)

The most commonly used format on the web.

Format:

#RRGGBB

Examples:

#3498db  /* Blue */
#e74c3c /* Red */
#2ecc71 /* Green */

Structure:

  • #: Prefix
  • RR: Red (00-FF)
  • GG: Green (00-FF)
  • BB: Blue (00-FF)

3-digit Shorthand:

#f00  /* Same as #ff0000 */
#abc /* Same as #aabbcc */

Advantages:

  • Concise
  • Default format in CSS
  • Easy to copy

Disadvantages:

  • Difficult for humans to understand
  • Color adjustments not intuitive

RGB (Red, Green, Blue)

Format using the three primary colors of light.

Format:

rgb(R, G, B)

Examples:

rgb(52, 152, 219)   /* Blue */
rgb(231, 76, 60) /* Red */
rgb(46, 204, 113) /* Green */

Value Range:

  • Each channel: 0-255
  • 0 = dark, 255 = bright

RGBA (with transparency):

rgba(52, 152, 219, 0.5)  /* 50% transparency */

Advantages:

  • Easy to understand
  • Independent adjustment of each color channel
  • Intuitive in programming

Disadvantages:

  • Longer than HEX
  • Brightness adjustment not intuitive

HSL (Hue, Saturation, Lightness)

Format using hue, saturation, and lightness.

Format:

hsl(H, S%, L%)

Examples:

hsl(204, 70%, 53%)   /* Blue */
hsl(6, 78%, 57%) /* Red */
hsl(145, 63%, 49%) /* Green */

Value Range:

  • H (Hue): 0-360° (color wheel)
    • 0° = Red
    • 120° = Green
    • 240° = Blue
  • S (Saturation): 0-100%
    • 0% = Gray
    • 100% = Pure color
  • L (Lightness): 0-100%
    • 0% = Black
    • 50% = Pure color
    • 100% = White

HSLA (with transparency):

hsla(204, 70%, 53%, 0.5)  /* 50% transparency */

Advantages:

  • Very intuitive color adjustment
  • Easy brightness/saturation control
  • Useful for creating color palettes

Disadvantages:

  • Less intuitive than HEX/RGB
  • Not supported by some older browsers

Color Format Comparison

FeatureHEXRGBHSL
Conciseness⭐⭐⭐⭐⭐⭐⭐
Readability⭐⭐⭐⭐⭐
CSS Support⭐⭐⭐⭐⭐⭐⭐⭐⭐
Easy Adjustment⭐⭐⭐⭐⭐
Transparency

Use Cases

1. CSS Styling

/* HEX */
.button {
background-color: #3498db;
}

/* RGB */
.button {
background-color: rgb(52, 152, 219);
}

/* HSL */
.button {
background-color: hsl(204, 70%, 53%);
}

2. Color Palette Generation

/* Easily create similar colors with HSL */
.primary { color: hsl(204, 70%, 53%); }
.lighter { color: hsl(204, 70%, 70%); } /* Increase L */
.darker { color: hsl(204, 70%, 35%); } /* Decrease L */
.desaturate{ color: hsl(204, 40%, 53%); } /* Decrease S */

3. Dynamic Colors in JavaScript

// Create gradient with RGB
for (let i = 0; i < 255; i++) {
const color = `rgb(${i}, 100, 200)`;
// Use
}

// Rainbow colors with HSL
for (let h = 0; h < 360; h += 30) {
const color = `hsl(${h}, 100%, 50%)`;
// Use
}

Preset Colors

This tool provides 10 popular colors:

ColorHEXName
🔴#e74c3cRed
🔵#3498dbBlue
🟢#2ecc71Green
🟠#f39c12Orange
🟣#9b59b6Purple
🔷#1abc9cTurquoise
#34495eDark Gray
🟤#e67e22Brown
#95a5a6Light Gray
🟧#d35400Dark Orange

Frequently Asked Questions

Q: Which format should I use?

  • HEX: Concise use in CSS, easy to copy
  • RGB: Programming, when adjusting individual channels
  • HSL: Creating color palettes, adjusting brightness/saturation

Generally, HEX is recommended!

Q: What's the difference between 3-digit and 6-digit HEX?

3-digit is shorthand for 6-digit:

  • #f00 = #ff0000
  • #abc = #aabbcc

Use 6-digit for precise colors!

Q: Why is RGB's maximum value 255?

8 bits = 2^8 = 256 values (0-255) Total colors = 256 × 256 × 256 = 16,777,216 colors

Q: Why is HSL's H 360 degrees?

Because the color wheel is a circle. 360 degrees = one full rotation

Q: How do you express transparency?

  • HEX: 8-digit (#RRGGBBAA)
  • RGB: Use RGBA
  • HSL: Use HSLA

🔗 Try These Next

💬 Was this tool helpful?

Feel free to send us your feedback or suggestions anytime!

Browser Compatibility

FormatChromeFirefoxSafariEdge
HEX
RGB
RGBA
HSL
HSLA

Privacy

This tool operates entirely on the client side. Your selected color information is never sent to a server and is processed only in your browser.