<?php

$hex = "#334455";
list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x");

echo $r; // 51
echo $g; // 68
echo $b; // 85
Related Keywords: Developer, How-to, Solved, Color Code Conversion, Convert Hex to RGB