In Java, gradient color values can be created using the Graphics2D class in the Java AWT library. You can define a gradient color between two or more colors and apply it to a shape or area using the fill() or draw() methods. The GradientPaint class is used to specify the gradient and its colors.