Skip to content

incorrect generated colour different to one specified #1927

@l1mey112

Description

@l1mey112

Description

I am trying to match colours on images and text. I have the exact colour values in hex, putting them into typst causes a slightly different colour to be presented. Ensure you compile these examples using typst c to generate a PDF.

I used a colour picker to get the real colour presented, it's placed in a comment at the end of the line.

#set page(fill: rgb("#F7208B")) // #F71A8C
#set page(fill: rgb("#131313")) // #0C0C0C

This can either be fixed, or return to me the correct algorithm/transformation to create a suitable matching colour.

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpdfRelated to PDF export or PDF embedding.visualizeRelated to the visualize category, which is about drawing and illustrating

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions