@beerwright/core
    Preparing search index...

    Function srmToHex

    • Approximate sRGB hex for an SRM value, for a beer-colour swatch.

      Linear interpolation between the integer entries of SRM_HEX_TABLE. Below SRM 1 it fades towards near-white (#FFF9E6, roughly the colour of water in a glass). Above SRM 40 it clamps to the darkest entry, which already looks black.

      Parameters

      • srm: number

      Returns string