الدليل 5 / 8

إمكانية الوصول مدة القراءة: 9 دقائق آخر تحديث

اختيار ألوان المخططات الشريطية المهيأة لسهولة الوصول (WCAG 2.2)

صمم لوحات ألوان تراعي عمى الألوان وتحقق معايير تباين WCAG 2.2 AA للعروض التقديمية والطباعة والوضع الداكن.

شارك هذا الدليل

ما ستتعلّمه

  • Approximately 8% of men and 0.5% of women have some form of color vision deficiency (colorblindness).
  • Never use red and green as the sole visual differentiator between two competing series.
  • Adopt universal accessible palettes like the Okabe-Ito and IBM Carbon design standards.
  • Ensure a minimum 3:1 contrast ratio between bar colors and the chart background under WCAG 2.2 AA guidelines.

Treat color as one channel, not the entire message

Color can group related values, create emphasis, and carry brand identity. It can also disappear under color-vision differences, low-quality projectors, grayscale printing, glare, or a dark-mode background. A robust chart remains understandable when color is weakened or removed.

The safest approach combines color with at least one redundant cue: position, direct labels, ordering, pattern, or clear legend text. That way, color accelerates understanding without becoming a single point of failure.

شرح مرئي

Accessible encoding uses more than hue

#0072B2 #E69F00 #009E73 #CC79A7
اللون النمط Aتسمية مباشرة
Distinct hues help, but labels and secondary encodings preserve meaning when colors are difficult to distinguish or unavailable.

Begin with a colorblind-aware palette

Rather than guessing color combinations, data professionals rely on empirically tested palettes:

  • The Okabe-Ito Palette: Designed by Masataka Okabe and Kei Ito (2002), this 8-color system uses distinct combinations of blue, orange, green, vermilion, and purple that remain recognizable under all types of color deficiency.
  • IBM Design Carbon: Engineered specifically for complex data software and charts, maximizing contrast steps across 14 accessible tones.

A palette is a starting point, not a guarantee. The same color can pass on white and fail on a tinted or dark background. Test the actual foreground–background pairs used in the exported chart.

Apply contrast to graphical objects and labels

Under the Web Content Accessibility Guidelines (WCAG 2.2 Level AA), visual information required to identify user interface components and graphical objects (such as chart bars) must have a contrast ratio of at least 3:1 against adjacent background colors.

Bar Chart Creator includes an automated linter that calculates the mathematical contrast ratio for every series color against your background and warns you if any series falls below the 3:1 threshold.

Text inside or beside bars follows text-contrast requirements, which depend on font size and weight. Avoid placing small white labels on pale colors or dark labels on saturated colors without checking each combination. When in doubt, place labels outside the bar on the chart background, following our advice on bar chart labels and axes.

Match the palette to the data relationship

  • Categorical palette: distinct hues for independent series with no inherent order. For multi-series data, see our comparison of grouped vs stacked bar charts or build one directly with the grouped bar chart maker.
  • Sequential palette: one hue moving from light to dark for low-to-high magnitude.
  • Diverging palette: two directions around a meaningful midpoint such as zero or target.
  • Highlight palette: neutral bars with one accent color for the category that matters. Explore pre-styled examples in our templates gallery.

Most business bar charts need fewer colors than their authors expect. A single-series chart normally needs one bar color. Repeating a rainbow across categories implies separate groups and creates needless legend work.

Design for real viewing conditions

Accessibility testing should reflect where the chart will be consumed. A palette that looks excellent on a calibrated laptop can collapse on a conference-room projector or a compressed screenshot. Preview the chart at presentation size, on the intended background, and with any surrounding brand colors visible.

CheckWhat to inspectTypical fix
ContrastBars versus background; labels versus fillsDarken, lighten, or move labels outside
Color visionSeries that merge under simulationChange hue and lightness; add labels
GrayscaleWhether categories remain distinguishableUse pattern, order, or direct annotation
ProjectionMuted colors and washed-out gridlinesIncrease contrast and simplify the palette

Use a repeatable accessibility workflow

  1. Choose the data relationship: categorical, sequential, diverging, or highlight.
  2. Limit the palette to the minimum number of colors needed.
  3. Check graphical and text contrast against the actual background.
  4. Add a non-color cue for any distinction required to understand the message.
  5. Preview in grayscale and with color-vision simulation.
  6. Inspect the final exported file at its real display size.

طبّق ما تعلّمته

حوّل فكرتك إلى رسم الآن.

بدون تسجيل أو علامة مائية أو رفع إلى الخادم