---
title: "getColor | Mobile sdk | Mobile sdk android | Android"
description: "getColor"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# getColor

suspend fun [getColor](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.colorramp/-m-t-color-ramp/get-color/)(value: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), options: [MTColorRampGetColorOptions](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.colorramp/-m-t-color-ramp-get-color-options/)? = null): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)<[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)\>

Returns the RGBA color for a given value.
