import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
     
 final String[] color_name = {"Red", "Yellow", "Teal", "Purple", "Pink", "Orange", "Lime", "Light Green", "Light Blue", "Indigo", "Grey", "Green", "Deep Purple", "Deep Orange", "Cyan", "Brown", "Blue Grey", "Blue", "Amber"};
  final String[] accent_color_name = {"Red", "Yellow", "Teal", "Purple", "Pink", "Orange", "Lime", "Light Green", "Light Blue", "Indigo",  "Green", "Deep Purple", "Deep Orange", "Cyan", "Blue", "Amber"};


//   final String[] color_shade = {"50", "100", "200", "300", "400", "500", "600", "700", "800", "900"};
final String[] color_shade = {"500", "600", "700"};
  
    // final String[] accent_shade = {"100", "200", "400", "700"};
    final String[] accent_shade = {"200", "400"};
  
  String colorName = getRandom(color_name);
  String colorShade = getRandom(color_shade);
  
  System.out.println(colorName+"-"+colorShade);
  
  String accentName = getRandom(accent_color_name);
  String accentShade = getRandom(accent_shade);
  
  System.out.println(accentName+"-"+accentShade);
  }
   
   
   public static String getRandom(String[] array) {

Random random = new Random();
int index = random.nextInt(array.length);
return array[index];
}
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: