> For the complete documentation index, see [llms.txt](https://imgo.gitbook.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://imgo.gitbook.io/en/api/maincolor.md).

# MainColor

Return the main color of the image.

## Parameters

None

## Return Values

Color of `color.RGBA`.

## Examples

```go
package main

import (
    "fmt"
    "github.com/fishtailstudio/imgo"
)

func main() {
    r, g, b, a := imgo.Load("gopher.png").
        MainColor().
        RGBA()
    fmt.Println(r, g, b, a)
}
```
