sRGB to Linear Light: the Piecewise IF with ^2.4
This lesson is part of the course
In this lesson
You turn 8-bit channel values into the linear light values that WCAG's luminance formula needs.
Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.
Lessons in this course
- Hex Colours to RGB and Back: HEX2DEC, MID & DEC2HEX Locked
- sRGB to Linear Light: the Piecewise IF with ^2.4 Locked
- Relative Luminance: 0.2126 R + 0.7152 G + 0.0722 B Locked
- Contrast Ratio: (L1 + 0.05) / (L2 + 0.05) Locked
- AA & AAA: Pass/Fail for Normal and Large Text Locked
- Fixing a Palette: Darken Step by Step Until It Passes Locked
- Contrast Matrix for a Brand Palette: Mixed References & Highlighting Locked
- Contrast Report: Pass Rate, Shortfalls & a Chart of Ratios vs Targets Locked