Method colorToHex documentation
Returns the hex color of the given rgb or color name.
Example
```javascript
//"#ff0000"
bbn.fn.colorToHex('red');
```
Example
```javascript
//"#ff0000"
bbn.fn.colorToHex('rgb(255,0,0)');
```
Returns the hex color of the given rgb or color name. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions