Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex DataLens
    • Overview
    • Formula syntax
      • All Functions
        • Overview
        • BOLD
        • BR
        • COLOR
        • IMAGE
        • ITALIC
        • MARKUP
        • SIZE
        • TOOLTIP
        • URL
        • USER_INFO
      • Function Availability
    • Parameters
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Text markup functions
  4. COLOR

COLOR

Written by
Yandex Cloud
Updated at November 6, 2024

SyntaxSyntax

COLOR( text, color )

DescriptionDescription

Enables specifying the color for the provided text.

We recommend using the color variables from the Gravity UI palette to specify colors. Such colors are easily discernible with both the light and dark theme.

You can also specify the color in any web format, such as HEX, keyword (e.g., green), RGB, etc. In this case, however, we cannot guarantee that the colors will be discernible.

Argument types:

  • text — Markup | String
  • color — String

Return type: Markup

ExamplesExamples

COLOR([text], 'var(--g-color-text-danger)')
COLOR([text], '#5282ff')
COLOR([text], 'blue')
COLOR([text], 'rgb(82, 130, 255)')
COLOR([text], 'rgba(82, 130, 255, 0.5)')

Data source supportData source support

ClickHouse 21.8, Files, Google Sheets, Microsoft SQL Server 2017 (14.0), MySQL 5.7, Oracle Database 12c (12.1), PostgreSQL 9.3, Yandex Documents, YDB.

Was the article helpful?

Previous
BR
Next
IMAGE
Yandex project
© 2025 Yandex.Cloud LLC