🎨RGB ↔ Hex Colour Converter
RGB (Red, Green, Blue) and hexadecimal (#RRGGBB) are two ways of expressing digital colours. RGB uses three components 0–255. Hex encodes each component as a two-digit base-16 number. HSL (Hue, Saturation, Lightness) is a more perceptually intuitive model used in design tools. All three representations describe the same colour space.
- 1Hex #RRGGBB: each pair is a two-digit hexadecimal number (00–FF = 0–255)
- 2Red component: first 2 hex digits | Green: middle 2 | Blue: last 2
- 3e.g. #FF0000 = rgb(255, 0, 0) = pure red
- 416,777,216 possible colours (256³) in 24-bit colour
- 5HSL: Hue 0–360° (colour wheel), Saturation 0–100%, Lightness 0–100%
rgb(255, 99, 71)=#FF6347 (Tomato red)CSS named colour: tomato
#4F46E5=rgb(79, 70, 229) — IndigoTailwind CSS indigo-600
rgb(0, 0, 0)=#000000 — Black; hsl(0, 0%, 0%)
| Colour | Hex | RGB |
|---|---|---|
| Red | #FF0000 | rgb(255,0,0) |
| Green | #00FF00 | rgb(0,255,0) |
| Blue | #0000FF | rgb(0,0,255) |
| White | #FFFFFF | rgb(255,255,255) |
| Black | #000000 | rgb(0,0,0) |
| Yellow | #FFFF00 | rgb(255,255,0) |
| Cyan | #00FFFF | rgb(0,255,255) |
| Magenta | #FF00FF | rgb(255,0,255) |
🔒
100% Gratuito
Nessuna registrazione
✓
Preciso
Formule verificate
⚡
Istantaneo
Risultati immediati
📱
Compatibile mobile
Tutti i dispositivi