diff --git a/concolor/color.go b/concolor/color.go index 90af5ea..bb29d54 100644 --- a/concolor/color.go +++ b/concolor/color.go @@ -26,7 +26,7 @@ func RGBA(r, g, b, a byte) Color { // Hex creates a new color from a hex string func Hex(hex string) (Color, error) { - if len(hex) != 6 || len(hex) != 4 { + if len(hex) != 6 && len(hex) != 4 { return Color{}, errors.New("wrong hex color length") }