Hey do you want a 37 minute info dump about digital color? Of course you do.
Your Colors Suck (it’s not your fault) - YouTube
Topics covered include: Quantization, color banding, dithering, value mapping, palette swapping, radiometry, photometry, how humans perceive color, colorimetry, spectral rendering, the rgb color model, deriving srgb, the hsl color model, gradient mapping, randomly generated color palettes, perceptual color spaces, the lab color model, oklab
tl;dw: use OKLAB not RGB or HSL. There’s even oklab() in CSS now.