{"action":"created","issue":{"url":"https://api.github.com/repos/stylus/stylus/issues/1994","labels_url":"https://api.github.com/repos/stylus/stylus/issues/1994/labels{/name}","comments_url":"https://api.github.com/repos/stylus/stylus/issues/1994/comments","events_url":"https://api.github.com/repos/stylus/stylus/issues/1994/events","html_url":"https://github.com/stylus/stylus/issues/1994","id":104479582,"number":1994,"title":"Convert hex to RGB (unquoted)","user":{"login":"manobi","id":82986,"avatar_url":"https://avatars.githubusercontent.com/u/82986?v=3","gravatar_id":"","url":"https://api.github.com/users/manobi","html_url":"https://github.com/manobi","followers_url":"https://api.github.com/users/manobi/followers","following_url":"https://api.github.com/users/manobi/following{/other_user}","gists_url":"https://api.github.com/users/manobi/gists{/gist_id}","starred_url":"https://api.github.com/users/manobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manobi/subscriptions","organizations_url":"https://api.github.com/users/manobi/orgs","repos_url":"https://api.github.com/users/manobi/repos","events_url":"https://api.github.com/users/manobi/events{/privacy}","received_events_url":"https://api.github.com/users/manobi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T13:21:19Z","updated_at":"2015-09-02T14:33:51Z","closed_at":"2015-09-02T14:33:51Z","body":"For a very specific use case I have to set color inside quotes, but even unquoting this I can't convert a hex color to rgb:\r\n```\r\n$color1_bg = '#080eff'\r\nrgb(unquote($color1_bg))\r\n```\r\n\r\n```\r\nerror: TypeError: expected rgba or hsla, but got literal:#080eff\r\n```"},"comment":{"url":"https://api.github.com/repos/stylus/stylus/issues/comments/137104544","html_url":"https://github.com/stylus/stylus/issues/1994#issuecomment-137104544","issue_url":"https://api.github.com/repos/stylus/stylus/issues/1994","id":137104544,"user":{"login":"Panya","id":235637,"avatar_url":"https://avatars.githubusercontent.com/u/235637?v=3","gravatar_id":"","url":"https://api.github.com/users/Panya","html_url":"https://github.com/Panya","followers_url":"https://api.github.com/users/Panya/followers","following_url":"https://api.github.com/users/Panya/following{/other_user}","gists_url":"https://api.github.com/users/Panya/gists{/gist_id}","starred_url":"https://api.github.com/users/Panya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panya/subscriptions","organizations_url":"https://api.github.com/users/Panya/orgs","repos_url":"https://api.github.com/users/Panya/repos","events_url":"https://api.github.com/users/Panya/events{/privacy}","received_events_url":"https://api.github.com/users/Panya/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T14:33:51Z","updated_at":"2015-09-02T14:33:51Z","body":"You can use [convert](http://learnboost.github.io/stylus/docs/bifs.html#convertstr) bif for this:\r\n```styl\r\n$color1_bg = '#080eff'\r\nbody\r\n  color: rgb(convert($color1_bg))\r\n```"}}