Tiga Format, Satu Tampilan
HEX, RGB, dan HSL semuanya terlihat dan dapat diedit pada saat yang bersamaan — ubah satu dan yang lain diperbarui secara instan.
Konversikan warna antara format HEX, RGB, dan HSL. Pratinjau langsung, preset cepat, salin nilai siap CSS. 100% sisi klien, tanpa unggahan.
A color converter translates colors between different format representations used in web design and digital graphics: HEX (#RRGGBB), RGB (0-255, 0-255, 0-255), HSL (hue, saturation, lightness), and HSV (hue, saturation, value). Each format describes the same color differently -- HEX is compact for CSS, HSL is intuitive for creating variations, and RGB maps directly to display hardware. This tool converts instantly as you type, entirely in your browser.
HEX, RGB, and HSL — all three formats update in real time as you type or pick. Copy CSS-ready values in one click. No uploads, no sign-up, no limits.
Ketik nilai HEX, sesuaikan input angka RGB/HSL, atau klik preset cepat.
Sampel di bagian atas diperbarui secara instan untuk menunjukkan warna saat ini.
Gunakan tombol Salin di sebelah HEX, RGB, atau HSL untuk menyalin nilai siap CSS.
HEX, RGB, dan HSL semuanya terlihat dan dapat diedit pada saat yang bersamaan — ubah satu dan yang lain diperbarui secara instan.
Tombol salin memberi Anda string `#RRGGBB`, `rgb(r, g, b)`, atau `hsl(h, s%, l%)` yang dapat ditempel langsung ke CSS.
Mulai dari palet default Tailwind CSS atau hitam/putih murni, lalu sesuaikan dengan penggeser.
HEX (#RRGGBB) is the most compact color format for web design. Each pair of hexadecimal digits (00-FF) represents the intensity of red, green, and blue, respectively. The value 00 means the channel is off (black), and FF means it's at full intensity. For example, #FF0000 is pure red, #00FF00 is pure green, and #FFFFFF is white. HEX is the standard format in CSS, HTML, and design tools because it's short, unambiguous, and easy to copy-paste. Shorthand notation (#RGB) exists for colors where each pair is identical, like #F00 for red.
RGB uses decimal values (0-255) for the same three channels. It's the format that display hardware natively understands -- each pixel on an LCD or OLED screen has red, green, and blue subpixels that can be set to 256 brightness levels. RGB is also used in JavaScript's canvas API (ctx.fillStyle = 'rgb(255, 0, 0)') and in image processing libraries. RGBA adds an alpha channel (0-1 or 0-255) for transparency.
HSL (Hue, Saturation, Lightness) describes colors in a way that's more intuitive for humans. Hue is the color itself, measured as an angle on the color wheel (0掳=red, 120掳=green, 240掳=blue). Saturation is how vivid the color is (0%=gray, 100%=fully colored). Lightness is how dark or light (0%=black, 50%=normal, 100%=white). HSL makes it easy to create tints (increase lightness), shades (decrease lightness), and tones (decrease saturation) of a base color. HSV (Hue, Saturation, Value) is similar but uses Value instead of Lightness -- Value=100% means the color at full brightness, while Lightness=100% means white.
Use HEX for CSS and HTML -- it's the most widely supported format and the shortest to write. Use RGB when you need to programmatically manipulate color channels (e.g., mixing two colors by averaging their RGB values) or when you need alpha transparency (rgba()). Use HSL when you need to create color variations -- for example, generating a button's hover state by increasing lightness by 10%, or creating a monochromatic color scheme by keeping hue constant and varying saturation and lightness.
HSL is particularly powerful in CSS custom properties (CSS variables). You can define -- hue: 210 and then use hsl(var(-- hue), 70%, 50%) throughout your stylesheet. Changing a single variable updates the entire color scheme -- impossible with HEX or RGB without recalculating every value. This is why modern CSS frameworks like Tailwind v4 are moving toward HSL-based color systems.
Bangun palet warna dengan memilih hue dasar dan menyesuaikan lightness — jauh lebih mudah di HSL daripada di RGB.
Figma sering menampilkan HEX; CSS terkadang membutuhkan RGB atau HSL (untuk `color-mix` atau opacity). Dapatkan string yang tepat dalam satu klik.
Pasangkan alat ini dengan Contrast Checker untuk memverifikasi bahwa pilihan warna Anda memenuhi persyaratan WCAG.
Ganti dengan cepat preset Tailwind dengan warna merek kustom dan salin HEX yang dihasilkan ke konfigurasi Anda.
Perbandingan langsung alat konversi warna populer.
| Fitur | NovaTools | RapidTables | W3Schools |
|---|---|---|---|
| HEX 鈫?RGB 鈫?HSL 鈫?HSV | Semua format | Terbatas | |
| Pratinjau langsung saat mengetik | Instan | Tombol kirim | |
| Integrasi pemilih warna | EyeDropper API | ||
| Privasi (tanpa unggah) | 100% lokal | Sisi server | |
| Copy CSS-ready values | |||
| Berfungsi offline |
Sebagian besar konverter warna online memproses konversi di server mereka. Alat kami melakukan semua perhitungan di browser Anda.
Alat ini berjalan sepenuhnya di browser Anda. File Anda tidak diunggah, disimpan, atau dianalisis.
Bahkan jika koneksi internet Anda terputus, file Anda tetap aman.
Pelajari cara mengubah warna antara HEX, RGB, dan HSL. Pahami kapan memakai masing-masing format, perbedaan RGB vs HSL, dan tips CSS color-mix. 100% sisi klien.
Pelajari dasar-dasar aksesibilitas web dan kontras warna. Pahami peringkat WCAG (AA vs. AAA) dan gunakan pemeriksaan cepat serta perbaikan praktis kami untuk membuat UI Anda dapat dibaca oleh semua orang.
Pelajari cara mengubah huruf besar/kecil teks: camelCase, snake_case, kebab-case, Title Case, CONSTANT_CASE, dan 12 gaya lainnya. Konvensi pemrograman dijelaskan. 100% sisi klien.