Skip to contents

Uses the W3C relative luminance formula (WCAG 2.0) to determine contrast.

Usage

hex_bw(hex_code, na_colour = "#ffffff")

Arguments

hex_code

Colour in hex-format.

Value

Colours in hex-format, either black or white.