Skip to main content
Logo

Shopify theme that uses OKLCH colors

Pops turns every color in your color schemes into OKLCH, so one hue change recolors the store and contrast stays where you set it.

Shopify color scheme in OKLCH: background, card, accent, button and heading colors shown at hues 145, 250 and 350 with the same lightness and chroma, while black body text stays the same

The problem

Shopify’s color picker stores hex and RGB values. Recoloring a store in RGB means retuning every color by hand, and two colors with the same RGB brightness can look far apart, so buttons and text lose contrast when the palette changes.

The solution

Pops converts every color scheme setting into OKLCH: backgrounds, text, buttons, cards, borders, shadows and gradients. OKLCH is a CSS color format that splits a color into lightness, chroma and hue, with lightness measured the way the eye sees it.

The hue sits in one CSS variable. Change it and every color moves to the new hue while keeping its lightness, so a dark button stays dark and the text on it stays readable. This is what lets Pops change the product page color per variant. Browsers without OKLCH support get your original colors.

How it works

  1. Set your color schemes

    Pick colors in Theme settings > Colors as usual. Pops converts them to OKLCH for you, no code.

  2. Keep neutrals neutral

    Black, white and greys have no chroma, so they stay the same whatever the hue.

  3. Recolor per product

    Add a color to a variant and the page switches to that hue, with the lightness of your scheme.

Questions merchants ask

  • What is OKLCH?

    A CSS color format written oklch(lightness chroma hue). Unlike RGB or HSL, two colors with the same lightness value look equally light, which makes palettes easier to keep consistent.

  • Do I need to enter OKLCH values in the theme editor?

    No. You use Shopify’s normal color picker. Pops does the conversion in the theme code.

  • Does OKLCH work in every browser?

    Current versions of Chrome, Safari, Firefox and Edge support it. Older browsers fall back to the colors you picked, so nothing breaks.