# `Color.InvalidHexError`

Raised when a hex color string cannot be parsed.

Has fields:

* `:hex` — the offending input string.

* `:reason` — `:bad_length` (not 3, 4, 6 or 8 hex digits) or
  `:bad_byte` (one or more characters are not hex digits).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
