private java.awt.Color fxToAWTColor(Color color){
  int r=((int)color.getRed() * 255);
  int g=((int)color.getGreen() * 255);
  int b=((int)color.getBlue() * 255);
  int rgb=(r << 16) + (g << 8) + b;
  return new java.awt.Color(rgb);
}

private java . awt . Color fxToAWTColor ( Color color ) { int r = ( ( int ) color . getRed ( ) * 255 ) ; int g = ( ( int ) color . getGreen ( ) * 255 ) ; int b = ( ( int ) color . getBlue ( ) * 255 ) ; int rgb = ( r << 16 ) + ( g << 8 ) + b ; return new java . awt . Color ( rgb ) ; }
get a awt color from javafx color .
