How to Color-Code Events in a Calendar UI: Color Schemes That Stay Readable Even with Many Events
When meetings and individual work fill a shared calendar, color-coding event types can make the schedule easier to scan. But colors alone may not explain what each event is, and overlapping time blocks can make event titles difficult to read. Using a department’s weekly calendar as an example, this article shows how to organize three event types with restrained colors while keeping their times and titles available.
Identify event types through both colors and text
In a calendar UI (user interface for viewing and managing schedules), events may be categorized as “Meeting,” “Focused Work,” or “Deadline.” Keep the meaning of each category color consistent. If the same meeting color is also used to mean high priority, people may not know what that color represents. Indicate urgency, approval status, or other attributes separately in words.
Keep the event time, category, and title visible together, for example, “10:00–11:00 / Meeting / Progress Review.” WCAG 2.2 (Web Content Accessibility Guidelines, international guidelines for making web content accessible) includes a Use of Color requirement: color must not be the only visual means of conveying information. A calendar should still be understandable when someone cannot distinguish the event colors.
Also check the contrast ratio—the difference in relative luminance—between each text color and its immediate background. Under WCAG 2.2 Level AA, normal-sized text generally requires at least 4.5:1 contrast; qualifying large text needs at least 3:1. Small time labels and event names in a calendar should normally be checked against the standard-text requirement.
Three readable colors for meetings, focused work, and deadlines
Imagine a shared weekly view from Monday through Friday. Set the day cells to white #FFFFFF and date and time labels to dark blue-gray #243247. Their contrast ratio is approximately 12.95:1. Secondary text in slate blue-gray #526174 still has about 6.32:1 contrast against white #FFFFFF, but much lighter gray #94A3B8 provides only about 2.56:1, making it unsuitable for small time labels.
- Meetings: Use a pale-violet event card #EDE9FE with deep-violet text #5B21B6 for the word “Meeting” and its title. The text-background contrast ratio is approximately 7.57:1.
- Focused Work: Use a pale-mint card #DDF7EE with dark-green text #14532D for the category and title. The ratio is approximately 8.08:1.
- Deadlines: Use a pale-amber card #FEF3C7 with dark-brown text #92400E for “Deadline” and the task name. The ratio is approximately 6.37:1.
A slate outline #64748B can make neighboring event cards easier to separate. Against the meeting violet #EDE9FE, the outline provides approximately 4.01:1 contrast; against the focused-work mint #DDF7EE, about 4.22:1; against the deadline amber #FEF3C7, about 4.27:1; and against the white day cell #FFFFFF, about 4.76:1. These differences help identify boundaries when events are crowded together. HEX codes (hexadecimal color values) are used here to specify the colors.
Recheck overlapping events, today’s date, and keyboard focus
Suppose Tuesday has “10:00–11:00 / Meeting / Progress Review” and “10:30–11:30 / Focused Work / Draft Review.” These events overlap. Display the event cards side by side, or provide a visible “2 more events” indicator that opens a list when additional items cannot fit. Merely laying transparent colors on top of each other does not make times or titles understandable. A Friday event such as “17:00 / Deadline / Submission Due” should also retain its written category and title rather than relying on amber alone.
Highlighting today with pale blue #EFF6FF does not create much contrast with a white day cell #FFFFFF: the ratio is only about 1.09:1. Add the word “Today” and, when a clear boundary is needed, a blue outline #1D4ED8. The outline provides about 6.16:1 contrast against pale blue #EFF6FF and 6.70:1 against white #FFFFFF. For keyboard focus—the visible indicator showing which event is currently ready for keyboard interaction—use a distinct dark-teal outline #0F766E. It provides approximately 4.61:1 contrast with a meeting card #EDE9FE, 4.85:1 with a focused-work card #DDF7EE, and 4.92:1 with a deadline card #FEF3C7.
Non-text visual cues that are necessary to identify interface controls or their states generally need at least 3:1 contrast against adjacent colors. On smartphones, avoid squeezing a full week into tiny columns; a day view or agenda list can preserve each event’s time and title. HueRoll lets you select colors by HEX code and compare them with white or black, but it does not compare arbitrary custom color pairs or automatically determine WCAG AA or AAA conformance. The event-card and outline ratios in this article were calculated separately. Verify the finished calendar and its interactions as well.