Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

AccessibleColors

Guides

  • AccessibleColors

Tech Notes

  • Designing Accessible Color Schemes

Symbols

  • AccessibleTextColor
  • AdjustForContrast
  • WCAGContrastRatio
  • WCAGLevel

Overviews

  • AccessibleColors
Wolfram`AccessibleColors`
AccessibleTextColor
​
AccessibleTextColor
[bg]
gives the text color (black or white by default) with the highest WCAG contrast against the background bg.
​
Details and Options
Examples  
(6)
Scope  
(1)
White text wins on a dark background:
In[1]:=
AccessibleTextColor
[RGBColor[0.1,0.1,0.4]]
Out[1]=
Options  
(1)

Applications  
(1)

Properties & Relations  
(1)

Possible Issues  
(1)

Neat Examples  
(1)

SeeAlso
WCAGContrastRatio
 
▪
WCAGLevel
 
▪
AdjustForContrast
 
▪
LightDarkSwitched
 
▪
LightDarkAutoColorRules
 
▪
StandardRed
RelatedGuides
▪
AccessibleColors
Dark text reads best on a light background:
In[1]:=
AccessibleTextColor
[LightBlue]
Out[1]=
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com