Skip to content

Instantly share code, notes, and snippets.

@JaisonBrooks
Last active December 16, 2015 21:51
Show Gist options
  • Save JaisonBrooks/5901b2b724a084bb7af8 to your computer and use it in GitHub Desktop.
Save JaisonBrooks/5901b2b724a084bb7af8 to your computer and use it in GitHub Desktop.
Generate random hex colors in ruby
```
255.times { puts '#%06x'%(rand*0xffffff) }
```
#3df5bd
#55e6a6
#52c4e4
#c5fc45
#07debb
#3a29eb
#e7a501
#175ca4
#9c8078
#f26bc5
#28f5f4
#687e8c
#2d929e
#9cead8
#b3a36a
#a85f5c
#189d51
#d27237
#4e9f04
#b373c0
#327c4d
#0266ba
#d437da
#5ed46f
#6bb3c6
#d97833
#4d919b
#49125c
#30fec7
#175009
#881c41
#cc0b89
#23e37e
#d8f8e1
#93a5e3
#59e2da
#aef6ea
#9c7f43
#c07ac3
#d2cd9a
#59a0c3
#0d48ce
#36538b
#f331e6
#b5af3e
#2f1d80
#be393b
#6425ec
#381b8d
#657cb4
#3ec9ea
#f99f9b
#142d85
#1617a5
#348587
#cf647d
#dcb178
#42bbcf
#8db00b
#55e5aa
#13a61f
#113453
#a5a377
#68ba8c
#ff4149
#e93808
#64106e
#468eca
#d482d5
#abf578
#d22041
#c7dc94
#057874
#0ad985
#f2b841
#cce916
#3a0b8b
#cb2e5a
#885219
#bf1fcf
#72a574
#730330
#9bfe6d
#3a8af1
#dffcc7
#6eee3a
#7c5a6a
#7a9822
#da7902
#f0e95e
#930a74
#240c85
#367456
#af8fad
#46b18e
#6139fb
#2f594d
#668abf
#a2bd51
#f656bd
#cb706d
#f13698
#6f8687
#9a90e5
#c7c0fb
#c40f5c
#fb7c6c
#638655
#c2cb3f
#59dd65
#1589aa
#df1243
#2c4533
#ba08aa
#d9d550
#8e71b4
#0abc3d
#ceb5c4
#1f0db9
#e3c789
#b5dadc
#088cd3
#2b1e81
#21eeb6
#0daa7d
#8e0c84
#49cb98
#feaf1f
#8add1b
#05e4b9
#07adef
#15fcf1
#9536f4
#4d0f99
#a34e07
#40b32c
#bb5345
#18c7c4
#b69ebd
#427dce
#e2fb43
#497332
#ec2390
#ba8dec
#09d1f0
#67df89
#23bbb8
#854062
#4a3fbd
#3af068
#0834f7
#855e29
#6cd778
#86e804
#b208dc
#39e0b6
#831883
#29c189
#b54d1d
#ad7e05
#ed5098
#22298a
#92895a
#48172d
#ab478d
#9ffdd7
#d153f2
#d1722e
#11e214
#4b8bde
#8ae356
#6f093d
#65b43c
#d17590
#ed9f80
#a08088
#313e2e
#b89fd6
#7b580d
#e78a32
#fe52cc
#7158b0
#603f4c
#67ca48
#ba024b
#f85065
#797a95
#7a392a
#0b511d
#3bd206
#33435f
#b45d95
#2535a2
#891868
#2cbad7
#12f7b2
#7a3d9c
#0becbe
#976f9c
#006521
#bbaf64
#1c8be9
#164ef5
#52a397
#86c2bb
#18c60c
#f0b34b
#99137d
#a2db2d
#afd2f6
#2cc214
#e3814f
#f09fe2
#0c2662
#de7edb
#38899d
#2171af
#b6d3e0
#e1c0b0
#3c170f
#c6d166
#1a80bf
#c0916b
#672137
#900f1f
#ff6d3a
#a9e552
#fcb424
#850cda
#d6f9bf
#33ceca
#193385
#7168ff
#8934d6
#ff5373
#4073f4
#260ad5
#44f90e
#f8c730
#6cdf9f
#be2a99
#046339
#069b0f
#85bc44
#294629
#adc681
#de04ec
#07bb3e
#46e4e4
#010e94
#f602b1
#923bd7
#457d9d
#9f5332
#9130ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment