'6EEFB0'.each_char.each_slice(2).map{|a| a.join.to_i(16) }
# => [110, 239, 176]
[110, 239, 176].map{|i| i.to_s(16) }.join.upcase
# => "6EEFB0"
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme