Using the Color Blindness Simulator
The Color Blindness Simulator recolors one hex value. Type a color in #RGB or #RRGGBB form and choose protanopia, deuteranopia, or tritanopia. The page converts the sRGB channels into linear light, applies the Machado 2009 severity-1 matrix for that type, converts the mixed channels back, clamps each channel, and writes a six-digit hex color. The color field starts at #FF0000 and the menu starts at protanopia. Choose Simulate the color. The label above the headline reads Simulated color. The headline is the simulated color. For that starting pair the headline is #6d5f00. Before any successful run the headline reads Enter a hex color.
The sentence under the headline names the lowercased input, the type, and the result, and it says the figure is an approximation. The lines repeat the input, the simulation name, and the simulated color. The steps name the linear conversion, the matrix multiply, and the return to hex with each channel clamped. Copy result copies that sentence. It leaves the headline, the lines, and the steps on the page. Reset returns the color field to #FF0000, the menu to protanopia, and the headline to Enter a hex color. The sentence, the lines, and the steps are cleared by that reset, so copy the sentence first if you still need the run.
This is an approximation of the typed color. It is not a diagnosis, and it does not test a person's vision. The page never sees a screen, a photograph, or an eye chart. It reads the characters in the color field and the type on the menu. The same pair of inputs returns the same hex on every run, because the matrices are fixed and the page adds no random step. A note that keeps only the result hex drops the two choices that produced it. Keep the typed color and the type with the hex.
A three-digit color is expanded before any math. Each digit is repeated, so #f00 becomes the same six channels as #ff0000 and then follows the same matrix. A value with a missing hash, a four-digit string, an eight-digit string, or a color name is rejected before the matrix runs. The only types the menu accepts are protanopia, deuteranopia, and tritanopia. An error replaces the headline and clears the sentence, so a rejected run never sits beside an older hex.
What the Simulated Hex Represents
The headline is a hex color produced from the color you typed. #FF0000 through the protanopia matrix is #6d5f00. The input line shows the color after it has been trimmed and lowercased, so the typed capitals become #ff0000 on that line. The simulation line shows the word protanopia, deuteranopia, or tritanopia. The simulated color line matches the headline. The label stays Simulated color on every successful run, including when a new type replaces the hex. Nothing on the page is a score, a pass, or a measurement of a person.
The result describes the typed color after one published matrix. Severity is fixed at 1, which is the matrix stored for that type. There is no second slider for a milder blend, and there is no control that mixes two types in one run. If you need a different type, change the menu and simulate again. The previous hex is replaced by the new one. The page keeps the three matrices separate, so a protanopia result is never reused as the deuteranopia result for the same input. Write the type beside any hex you keep, because the headline alone does not name the matrix.
How sRGB Becomes the Result Hex
The page first checks the color against #RGB or #RRGGBB, using digits and the letters a through f. A valid three-digit form is expanded by doubling each digit. Each pair of hex digits becomes a channel from 0 to 255, then a fraction from 0 to 1. A channel at or below 0.04045 is divided by 12.92. A larger channel takes 0.055 added, divides by 1.055, and is raised to 2.4. Those three numbers are linear light for red, green, and blue. The matrix multiplies that linear trio. It does not multiply the original 0-to-255 channel bytes.
Each simulation has its own three-by-three Machado 2009 severity-1 matrix. The page multiplies that matrix by the linear channels, one row at a time. Each mixed channel is clamped between 0 and 1. A value at or below 0.0031308 is multiplied by 12.92. A larger value is raised to one divided by 2.4, multiplied by 1.055, and then reduced by 0.055. The encoded channel is clamped again, multiplied by 255, and rounded to an integer. Two hex digits are written for each channel, using lowercase letters when a digit falls between a and f. Rounding happens after the encoded channel is multiplied by 255. A shadow rule is a different task. The CSS Box Shadow Generator writes a box-shadow declaration from the offsets, blur, spread, and color you set. Use that page when you are building a shadow. Use this page when you want the simulated hex for one typed color.
What the Matrix Leaves Out
The calculation stops at one color. It does not recolor an image, a stylesheet, or a palette of several swatches. If you have five brand colors, run each hex on its own and keep a list. The page will not remember that list after a reset. Reset also restores #FF0000 and protanopia, so the next untouched run is the sample pair again. The page will not tell you which of those five colors remains easiest to tell apart, because that judgment needs a viewing task the form does not collect.
The page does not name a condition in a person, and it does not compare two people. Protanopia, deuteranopia, and tritanopia here are labels for three matrices. Choosing one of them applies that matrix to the typed color. It does not report whether anyone in a room matches that label. Lighting, display calibration, lens tint, and the size of a patch of color are all outside the field. The hex is the arithmetic result of the typed characters and the selected matrix. Change one hex digit and run again when you want to see that the matrix follows the new channels.
The Starting Red Under Protanopia
Leave the color at #FF0000 and the simulation at protanopia. Choose Simulate the color. The headline reads #6d5f00. The input line reads #ff0000. The simulation line reads protanopia. The sentence says that #ff0000 through the protanopia matrix is #6d5f00 and that this is an approximation. Run it again without edits. The headline stays #6d5f00, because the inputs and the matrix did not change. Copy result on that run copies the sentence that names #ff0000, protanopia, and #6d5f00.
Change only the type and run again when you want the other stored matrix. The page will show that type's hex for the same red. Change the color to #f00 and return the type to protanopia. The short form expands to the same channels as #ff0000, so the protanopia headline is again #6d5f00. Keep the simulation line in view so both runs use protanopia. Fitting a box to a frame is a different calculation. The Image Aspect Ratio Calculator reduces a width and a height to a ratio. Use that page for the ratio of two sides. Use this page for the hex that comes out of the matrix.
Which Colors and Types Are Accepted
The color must match #RGB or #RRGGBB after trimming and lowercasing. #FF0000, #ff0000, and #f00 are accepted. #ff, #ffff, #ff0000ff, ff0000 with no hash, and the word red are rejected with Color must be a #RGB or #RRGGBB hex value. A blank field fails that same check. Spaces inside the color fail it too. The page does not strip a missing hash and guess that you meant a hex value. A letter other than a through f fails the same pattern and uses that same color message.
The type must be protanopia, deuteranopia, or tritanopia. Any other posted type is rejected with Choose protanopia, deuteranopia, or tritanopia. There is no severity field, so a request for a partial severity never reaches the matrix. The output hex always uses six digits. Channels that the matrix pushes below 0 or above 1 are clamped before the final rounding, so each pair of digits stands for an integer from 0 through 255. The page has no second result such as a named overlap or a personal severity.
Common Mix-ups With the Hex
A frequent mix-up is to treat #6d5f00 as a measurement of someone's sight. The figure is the protanopia matrix applied to the starting red. Another mix-up is to paste a color name or an rgb() function and expect a conversion. The field accepts only the two hex forms. A third mix-up is to compare a protanopia hex with a deuteranopia hex and call the gap a test result. Those are two separate runs of two matrices. A fourth is to drop the hash, or to add an alpha pair, and then read the rejection as a matrix failure. The rejection happens before any channel is converted. Submit again after you fix the characters. An error headline clears the old sentence, so the previous hex does not linger under the error.
Pixel size is a different conversion, and it leaves the color field untouched. The Inches to Pixels page turns a length in inches and a pixel density into a pixel count. It does not apply a color matrix and it does not return a hex color. Use that page when the question is how many pixels a length covers. Use this page when the question is the simulated hex for one color you typed.
Working a Short Color and a Bad Value
Type #0f0 and leave the simulation on protanopia. Choose Simulate the color. The input line shows #0f0 lowercased, the channels are expanded by doubling each digit, and the headline is the six-digit hex from the protanopia matrix. Switch the menu to deuteranopia and simulate again. The headline changes because the matrix changed. Switch to tritanopia and simulate again. You now have three hex colors for one short green, each tied to the type printed on the simulation line. Write the type next to the hex if you copy only the headline. Do that before you switch the menu, because the next headline replaces the one on screen.
Clear the color and submit an empty field. The headline becomes Color must be a #RGB or #RRGGBB hex value. The lines and the sentence are cleared. Type #ff0000 and submit a type the menu does not list, if you are sending the form by hand. The headline becomes Choose protanopia, deuteranopia, or tritanopia. Restore #FF0000 and protanopia and simulate once more. The headline returns to #6d5f00. That last run confirms the sample still follows the stored protanopia matrix. Any other headline means the color or the type is no longer that sample pair.
Writing Down the Pair You Ran
Copy result copies the sentence, which already contains the lowercased color, the type, and the simulated hex, plus the statement that the figure is an approximation. If you also need the headline alone, select #6d5f00 from the headline and copy that separately. A note that says only #6d5f00 can be misread later, because a different input can land on a similar hex. Keep the input color and the type in the same note as the result. The copied sentence already holds those pieces and the approximation wording, which is the safest single line to file.
Reset clears the result panel back to the waiting line and restores the sample fields. Copy the sentence before you reset if the run matters. The page does not store a history of earlier colors. After a reset the waiting line is Enter a hex color, which means no matrix result is currently shown. A flex container is a different declaration to file beside a color note. The CSS Flexbox Generator builds display, direction, justify, align, and gap from the settings you choose. Use that page when you are writing a flex container. Use this page when the note you are keeping is a simulated hex.
Reading the Hex as an Approximation
#6d5f00 is the protanopia result for the starting red after linear conversion, the severity-1 matrix, the return to encoded sRGB, and clamping. It is the color the page computed. It is an approximation of the typed color under that matrix. Put the word approximation in any note you share, because the sentence on the page already uses it and the hex alone does not carry that warning. The copied sentence already includes the word, so that line can travel with the hex.
Checks Before You Copy the Hex
Read the input line and confirm it is the color you meant, including the leading hash and either three or six hex digits. Read the simulation line and confirm the type. Then read the headline. For the sample, those three pieces are #ff0000, protanopia, and #6d5f00. If any one of them is a leftover from an earlier run, simulate again before you copy. An error headline means the matrix did not run. Fix the color or the type and submit again. The sample pair is the quick check: #FF0000 with protanopia must show #6d5f00 before you trust a later color.
Equal columns are a different layout question, and they belong on a layout page. The CSS Grid Generator writes a grid with a column count and a gap, and every column is 1fr. It does not recolor a hex value. Use that page when you are setting equal grid columns. Use this page when you are simulating one color through protanopia, deuteranopia, or tritanopia.