inc/customizer/colors.php
public function get_default_color( $color, $scheme = '', $hash = false ) {

		/**
		 * Load for backwards compatibility prior to WordPress 4.6.
		 *
		 * @link  https://core.trac.wordpress.org/ticket/27583
		 * @since 1.0.0
		 */
		if ( ! function_exists( 'sanitize_hex_color' ) || ! function_exists( 'sanitize_hex_color_no_hash' ) ) {

			require_once ABSPATH . 'wp-includes/class-wp-customize-manager.php';

		}

		$scheme = empty( $scheme ) ? $this->get_current_color_scheme_array() : $this->color_schemes[ $this->sanitize_color_scheme( $scheme ) ];
		$hex    = isset( $scheme['colors'][ $color ] ) ? trim( $scheme['colors'][ $color ], '#' ) : null;

		return ( $hash ) ? sanitize_hex_color( '#' . $hex ) : sanitize_hex_color_no_hash( $hex );

	}
public function get_default_color( $color, $scheme = '', $hash = false ) {

		/**
		 * Load for backwards compatibility prior to WordPress 4.6.
		 *
		 * @link  https://core.trac.wordpress.org/ticket/27583
		 * @since 1.0.0
		 */
		if ( ! function_exists( 'sanitize_hex_color' ) || ! function_exists( 'sanitize_hex_color_no_hash' ) ) {

			require_once ABSPATH . 'wp-includes/class-wp-customize-manager.php';

		}

		$scheme = empty( $scheme ) ? $this->get_current_color_scheme_array() : $this->color_schemes[ $this->sanitize_color_scheme( $scheme ) ];
		$hex    = isset( $scheme['colors'][ $color ] ) ? trim( $scheme['colors'][ $color ], '#' ) : null;

		return ( $hash ) ? sanitize_hex_color( '#' . $hex ) : sanitize_hex_color_no_hash( $hex );

	}
public function get_default_color ( $ color , $ scheme = '' , $ hash = false ) { /**
		 * Load for backwards compatibility prior to WordPress 4.6.
		 *
		 * @link  https://core.trac.wordpress.org/ticket/27583
		 * @since 1.0.0
		 */ if ( ! function_exists ( 'sanitize_hex_color' ) || ! function_exists ( 'sanitize_hex_color_no_hash' ) ) { require_once ABSPATH . 'wp-includes/class-wp-customize-manager.php' ; } $ scheme = empty ( $ scheme ) ? $ this -> get_current_color_scheme_array ( ) : $ this -> color_schemes [ $ this -> sanitize_color_scheme ( $ scheme ) ] ; $ hex = isset ( $ scheme [ 'colors' ] [ $ color ] ) ? trim ( $ scheme [ 'colors' ] [ $ color ] , '#' ) : null ; return ( $ hash ) ? sanitize_hex_color ( '#' . $ hex ) : sanitize_hex_color_no_hash ( $ hex ) ; }
Return the default HEX value for a color in a scheme.

@param  string $color
@param  string $scheme (optional)
@param  bool   $hash   (optional)

@return string|null
Return the default HEX value for a color in a scheme .