Colour the document defines
The same six colours said as bare numbers and then read through the sRGB profile the file carries, plus a ramp from light to dark and a sweep of hues in CIE L*a*b*: colour that still means the same thing on another screen and on a press.
Three numbers written into a file say only three numbers: what they look like is left to whatever shows them. The rows on this page say colour two other ways: through the ICC profile the file carries, so the numbers mean what they meant when the document was made, and as CIE 1976 L*a*b*.
L*a*b* is worth a look even if you never use it, because lightness and colour are two separate numbers in it: the ramp on this page changes one number, and the sweep of hues changes the other two. This is what a document does when the colour on the page has to survive the journey to somebody else's screen or press.
What this example shows
- Bare numbers set beside the same numbers read through a profile.
- An sRGB profile carried inside the document itself.
- A ramp from light to dark and a sweep of hues in CIE L*a*b*.
The code, in full
The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.
The document itself
The same document is written in each of these languages. Open the one you want to look at.
Open the document in English
Open the document in French
Read the Rust source
Read the Python source