Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
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
© 2025 Direct Cursus Technology L.L.C.