WordPress at a glance
function is not described

wc_hex_lighter() WC 1.0

Make HEX color lighter.

No Hooks.

Return

String. Nothing.

Usage

wc_hex_lighter( $color, $factor );
$color(mixed) (required)
Color.
$factor(int)
Lighter factor.
Default: 30

Code of wc_hex_lighter() WC 5.2.2

<?php
function wc_hex_lighter( $color, $factor = 30 ) {
	$base  = wc_rgb_from_hex( $color );
	$color = '#';

	foreach ( $base as $k => $v ) {
		$amount      = 255 - $v;
		$amount      = $amount / 100;
		$amount      = NumberUtil::round( $amount * $factor );
		$new_decimal = $v + $amount;

		$new_hex_component = dechex( $new_decimal );
		if ( strlen( $new_hex_component ) < 2 ) {
			$new_hex_component = '0' . $new_hex_component;
		}
		$color .= $new_hex_component;
	}

	return $color;
}