As of January 3rd, 2023 the ACCESS NYC Pattern library package is deprecated in favor of the NYC Opportunity Standard which contains updated user interface elements and usability guidance.
Color
The ACCESS NYC Patterns color palette builds on top of the U.S. Web Design System. Specific combinations were tested for adequate contrast following the distinguishability guideline of the Web Content Accessibility Guidelines (WCAG) 2.0.
Body text color is black on white and heading text color is dark blue, meeting compliance and using the brand colors of ACCESS NYC. Because we can’t illustrate all interactive elements solely with color, hyperlinks are also underlined to accommodate color blindness.
Primary and secondary colors highlight interactions with buttons and hyperlinks. Each state of interaction, including default, hover, and focus states, conform to the WCAG AA standard at a base level.
Below are swatches with examples of the approved color combinations. Please note that WCAG AA compliance depends on the base text size. The examples below may not be fully compliant because their font-size is set to a smaller size.
light background
Headings h1, h3, h5
Alternative Text
Selector.color-light-background
mid background
Headings h1, h3, h5
Alternative Text
Selector.color-mid-background
dark background
Headings h1, h3, h5
Alternative Text
Selector.color-dark-background
primary button
Selector.color-primary-button
secondary button
Selector.color-secondary-button
tertiary button
Selector.color-tertiary-button
covid response button
Selector.color-covid-response-button
code
Selector.color-code
With the help of Tailwind CSS every color in ACCESS NYC Patterns can be used as a utility class for static, hover, and responsive states of the text, border, and background properties. Refer to the Tailwind CSS Docs for full details. In order to maintain WCAG AA compliance, custom combinations of text and background colors must be tested for adequate contrast. The WebAIM Color Contrast Checker makes testing easy.
Below are examples of the color utilities and their corresponding selectors. Please note, not all of the text color examples are accessible because they show the color utility in use on a white background.
blue light
Hex#C3DDFF
Border.border-blue-light
Text.text-blue-light
Background.bg-blue-light
blue bright
Hex#118DF0
Border.border-blue-bright
Text.text-blue-bright
Background.bg-blue-bright
blue
Hex#184E9E
Border.border-blue
Text.text-blue
Background.bg-blue
blue dark
Hex#112E51
Border.border-blue-dark
Text.text-blue-dark
Background.bg-blue-dark
yellow light
Hex#FFE6A9
Border.border-yellow-light
Text.text-yellow-light
Background.bg-yellow-light
yellow access
Hex#FBB720
Border.border-yellow-access
Text.text-yellow-access
Background.bg-yellow-access
green light
Hex#B7ECCF
Border.border-green-light
Text.text-green-light
Background.bg-green-light
green
Hex#05CE7C
Border.border-green
Text.text-green
Background.bg-green
green mid
Hex#0D6D3B
Border.border-green-mid
Text.text-green-mid
Background.bg-green-mid
green dark
Hex#094727
Border.border-green-dark
Text.text-green-dark
Background.bg-green-dark
pink light
Hex#F1B3bD
Border.border-pink-light
Text.text-pink-light
Background.bg-pink-light
pink
Hex#F1647C
Border.border-pink
Text.text-pink
Background.bg-pink
red
Hex#C6252b
Border.border-red
Text.text-red
Background.bg-red
purple
Hex#4C2C92
Border.border-purple
Text.text-purple
Background.bg-purple
covid response
Hex#803D8D
Border.border-covid-response
Text.text-covid-response
Background.bg-covid-response
covid response light
Hex#DAB7E0
Border.border-covid-response-light
Text.text-covid-response-light
Background.bg-covid-response-light
grey light
Hex#D1D5D9
Border.border-grey-light
Text.text-grey-light
Background.bg-grey-light
grey lightest
Hex#EEF3F7
Border.border-grey-lightest
Text.text-grey-lightest
Background.bg-grey-lightest
grey mid
Hex#505C66
Border.border-grey-mid
Text.text-grey-mid
Background.bg-grey-mid
grey dark
Hex#172129
Border.border-grey-dark
Text.text-grey-dark
Background.bg-grey-dark
black
Hex#000000
Border.border-black
Text.text-black
Background.bg-black
white
Hex#FFFFFF
Border.border-white
Text.text-white
Background.bg-white
transparent
Hexrgba(255, 255, 255, 0)
Border.border-transparent
Text.text-transparent
Background.bg-transparent
inherit
Hexinherit
Border.border-inherit
Text.text-inherit
Background.bg-inherit
eighth avenue
Hex#2850AD
Border.border-eighth-avenue
Text.text-eighth-avenue
Background.bg-eighth-avenue
sixth avenue
Hex#FF6319
Border.border-sixth-avenue
Text.text-sixth-avenue
Background.bg-sixth-avenue
crosstown
Hex#6CBE45
Border.border-crosstown
Text.text-crosstown
Background.bg-crosstown
canarsie
Hex#A7A9AC
Border.border-canarsie
Text.text-canarsie
Background.bg-canarsie
nassau
Hex#996633
Border.border-nassau
Text.text-nassau
Background.bg-nassau
broadway
Hex#FCCC0A
Border.border-broadway
Text.text-broadway
Background.bg-broadway
broadway seventh avenue
Hex#EE352E
Border.border-broadway-seventh-avenue
Text.text-broadway-seventh-avenue
Background.bg-broadway-seventh-avenue
lexington avenue
Hex#00933C
Border.border-lexington-avenue
Text.text-lexington-avenue
Background.bg-lexington-avenue
flushing
Hex#B933AD
Border.border-flushing
Text.text-flushing
Background.bg-flushing
shuttles
Hex#808183
Border.border-shuttles
Text.text-shuttles
Background.bg-shuttles