color

color:set_white

Set your app's white hex color codes.


color:white

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_black

Set your app's black hex color codes.


color:black

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_blue

Set your app's blue hex color codes.


color:blue

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_yellow

Set your app's yellow hex color codes.


color:yellow

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_green

Set your app's green hex color codes.


color:green

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_orange

Set your app's orange hex color codes.


color:orange

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_red

Set your app's red hex color codes.


color:red

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_primary

Set your app's primary hex color codes.


color:primary

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_accent

Set your app's accent hex color codes.


color:accent

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_body

Set your app's body hex color codes.


color:body

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_border

Set your app's border hex color codes.


color:border

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_background_1

Set your app's background_1 hex color codes.


color:background_1

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_background_2

Set your app's background_2 hex color codes.


color:background_2

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_background_3

Set your app's background_3 hex color codes.


color:background_3

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_background_4

Set your app's background_4 hex color codes.


color:background_4

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_background_5

Set your app's background_5 hex color codes.


color:background_5

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:set_background_6

Set your app's background_6 hex color codes.


color:background_6

Get the most legible version of the color based on either light/dark mode you have set for your app, or if background color is provided the most ligible version of the color on the given background.


color:rgb_to_hsl

Convert RGB (Red, Green, Blue) to HSL (Hue, Saturation, Lightness)


color:hsl_to_rgb

Convert HSL (Hue, Saturation, Lightness) to RGB (Red, Green, Blue).


color:hex_to_rgb

Convert Hex Color Code to rgb(Red, Green, Blue)


color:rgb_to_rgba

Convert RGB to rgba(Red, Green, Blue, Opacity) HTML/CSS format


color:hex_to_rgba

Convert Hex Color Code to rgba(Red, Green, Blue, Opacity) HTML/CSS format


color:rgb_to_hex

Transform RGB to Hex Color code


color:adjust_hex_value

Adjust the value (brightness of a hex color (Steps should be between -255 and 255. Negative = darker, positive = lighter)


color:adjust_rgb

Adjust the hue (0 to 359), saturation (0 to 1), and lightness (0 to 1) of a RGB color (Red, Green, Blue)


color:adjust_rgb_by_percentage

Increase or decrease Hue, Saturation, and Lightness of an rgb color from its current values.


color:is_safe_on_white?

Check if a color is safe on white background


color:is_safe_on_black?

Check if a color is safe on black background


color:is_safe_on_another_color?

Check if a color is legible on another color


color:get_two_colors_absolute_luma_difference

Get the absolute luma difference between two colors


color:get_standardized_hex_color_code

Get a standardized hex color code like #FFFFFF


color:get_variation_legible_on_black

Modify the color if it is not legible on black.


color:get_variation_legible_on_white

Modify the color if it is not legible on white


color:lighten_based_on_luma_difference_between_another_color

Will lighten the color until the minimum desired luma difference is reached between the two colors


color:darken_based_on_luma_difference_between_another_color

Will darken the color until the minimum desired luma difference is reached between the two colors


color:get_variation_legible_on_another_color

Modify the color if it is not legible on another color


color:get_most_legible_overlay_color

Get either white or black (as HEX Color Code) depending on which has the highest contrast on the given color.


color:is_closer_to_black?

Check if given hex color code is closer to #000000 black


color:is_closer_to_white?

Check if given hex color code is closer to #ffffff white


color:get_luminance

Get the brightness of a color between 0 (darkest) to 255 (brightest)


Copyright © SunSed LLC 2013-2022 All rights reserved.