PrimeCalcPro
Explore 1070+ free calculators — math, finance, health & more.

RGB to Hex Converter

Convert RGB colour values to hex code

🎨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.

  1. 1Hex #RRGGBB: each pair is a two-digit hexadecimal number (00–FF = 0–255)
  2. 2Red component: first 2 hex digits | Green: middle 2 | Blue: last 2
  3. 3e.g. #FF0000 = rgb(255, 0, 0) = pure red
  4. 416,777,216 possible colours (256³) in 24-bit colour
  5. 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%)
ColourHexRGB
Red#FF0000rgb(255,0,0)
Green#00FF00rgb(0,255,0)
Blue#0000FFrgb(0,0,255)
White#FFFFFFrgb(255,255,255)
Black#000000rgb(0,0,0)
Yellow#FFFF00rgb(255,255,0)
Cyan#00FFFFrgb(0,255,255)
Magenta#FF00FFrgb(255,0,255)
🔒
100% Gratuit
Sans inscription
Précis
Formules vérifiées
Instantané
Résultats immédiats
📱
Compatible mobile
Tous les appareils

Settings

Theme

Light

Dark

Layout

Language

PrivacyTermsAbout© 2025 PrimeCalcPro