Title: WP_Duotone::colord_hsla_to_rgba
Published: August 8, 2023
Last modified: August 20, 2026

---

# WP_Duotone::colord_hsla_to_rgba( array $hsla ): array

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#changelog)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Converts an HSLA array to RGBA.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#description)󠁿

Direct port of colord’s hslaToRgba function.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#parameters)󠁿

 `$hsla`arrayrequired

The HSLA array to convert.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#return)󠁿

 array The RGBA array.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#source)󠁿

    ```php
    private static function colord_hsla_to_rgba( $hsla ) {
    	return self::colord_hsva_to_rgba( self::colord_hsla_to_hsva( $hsla ) );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-duotone.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/class-wp-duotone.php#L448)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-duotone.php#L448-L450)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Duotone::colord_hsva_to_rgba()](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsva_to_rgba/)`wp-includes/class-wp-duotone.php` |

Converts an HSVA array to RGBA.

  | 
| [WP_Duotone::colord_hsla_to_hsva()](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_hsva/)`wp-includes/class-wp-duotone.php` |

Converts an HSLA array to HSVA.

  |

| Used by | Description | 
| [WP_Duotone::colord_parse_hsla_string()](https://developer.wordpress.org/reference/classes/wp_duotone/colord_parse_hsla_string/)`wp-includes/class-wp-duotone.php` |

Parses a valid HSL[A] CSS color function/string.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_duotone/colord_hsla_to_rgba/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.3.0](https://developer.wordpress.org/reference/since/6.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_duotone%2Fcolord_hsla_to_rgba%2F)
before being able to contribute a note or feedback.