RCO

const
Color & A11y

Red channel luminance coefficient (0.2126729) in the sRGB-to-relative-luminance formula (WCAG 2.x). Used with GCO and BCO by color utilities to compute contrast ratios and APCA lightness.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Computing relative luminance from linearised RGB

typescript