I am trying to refrain from using a library to do this but I am sending a method a hex color as a string and I'd like to determine if it's a white (or near white) color and if so throw an exception.
$color = $request->input('color') // '#FFFFFF'
doing so for white ( like above ), or any single color, would be pretty self explanatory but I can't figure out how to map out a bunch of light colors without explicitly creating an array with every light color