public function getLightOrDark($color, $dark = '#000000', $light = '#FFFFFF')
    {
        $color = str_replace('#', '', $this->hex6($color));

        $r = hexdec(substr($color, 0, 2));
        $g = hexdec(substr($color, 2, 2));
        $b = hexdec(substr($color, 4, 2));

        $brightness = (($r * 299) + ($g * 587) + ($b * 114)) / 1000;

        return ($brightness >= 155) ? $dark : $light;
    }