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

# getColorRelative

suspend fun [getColorRelative](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.colorramp/-m-t-color-ramp/get-color-relative/)(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 relative value between 0 and 1.
