Media Mode Comparison

Compare luminance algorithms for detecting dark vs light surfaces. Used by useImageMode + MediaTheme to adapt overlaid controls.
sRGB linearization + perceptual power curve (Y^0.56), threshold 0.5. Best mid-tone discrimination. Targeting WCAG 3.

Solid Colors

black
0.000dark
white
1.000light
red
0.420dark
green
0.829light
blue
0.229dark
yellow
0.959light
cyan
0.875light
magenta
0.495dark
mid-gray
0.396dark
dark-gray
0.156dark
light-gray
0.683light
orange
0.651light
navy
0.091dark
forest
0.236dark
maroon
0.166dark
teal
0.346dark

Real Images

Samples the upper-right corner where a remove button would sit. Switch algorithms above; images re-detect with the selected algorithm.
forest
forest
detecting…
laptop
laptop
detecting…
clouds
clouds
detecting…
water
water
detecting…
door
door
detecting…
bones
bones
detecting…
road
road
detecting…
puppy
puppy
detecting…