Skip to content Skip to footer navigation

Hex To RGB Modifier

Converts a color from hex to RGB, the perfect match for the color fieldtype.

color: `#FF269E`
{{ color | hex_to_rgb }}
{{ Statamic::modify($color)->hexToRgb() }}
255, 38, 158