Contrast Ratio
PureContrastRatioCalculates the WCAG contrast ratio between two colors (1:1 to 21:1).
Type: Pure (no side effects)
Category: Fortuna|Color & Visual
Keywords: color & visual
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| ColorA | FLinearColor | — | ColorA parameter |
| ColorB | FLinearColor | — | ColorB parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | float | ReturnValue output |
Example Use Cases
Example 1
Verify text readability against background color.
Example 2
Validate UI color accessibility.