Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

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