PreviewingGo to this paletteOpen in generator
Code
/* Basketball Court — colorset.net */
:root {
--color-1: #FF8C00;
--color-2: #8B4513;
--color-3: #FFFFFF;
--color-4: #000000;
--color-5: #FF0000;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #000000;
--color-muted: #4D4D4D;
--color-primary: #EA0000;
--color-on-primary: #FFFFFF;
--color-accent: #D77500;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #000000;
--color-surface: #000000;
--color-border: #090707;
--color-text: #FFFFFF;
--color-muted: #7A7A7A;
--color-primary: #EA0000;
--color-on-primary: #FFFFFF;
--color-accent: #FF8C00;
--color-on-accent: #000000;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | from palette · color 3 | from palette · color 4 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 4 | from palette · color 3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF0000 | adjusted for contrast · from #FF0000 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF8C00 | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 19.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 8.45:1 | AAA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 6.43:1 | AA pass 4.5:1 | |
| Primary on background | 4.67:1 | AA pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 21.00:1 | AAA pass 4.5:1 | |
| Text on surface | 21.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 9.00:1 | AAA pass 4.5:1 | |
| Primary on background | 4.50:1 | AA pass 3:1 | |
| Accent on background | 9.00:1 | AAA pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #FF8C00 (Text 1) | #8B4513 (Text 2) | #FFFFFF (Text 3) | #000000 (Text 4) | #FF0000 (Text 5) |
|---|---|---|---|---|---|
| #FF8C00 | Same color | 3.04AA Large | 2.33— | 9.00AAA | 1.71— |
| #8B4513 | 3.04AA Large | Same color | 7.10AAA | 2.96— | 1.78— |
| #FFFFFF | 2.33— | 7.10AAA | Same color | 21.00AAA | 4.00AA Large |
| #000000 | 9.00AAA | 2.96— | 21.00AAA | Same color | 5.25AA |
| #FF0000 | 1.71— | 1.78— | 4.00AA Large | 5.25AA | Same color |
Shades
Shades and tints (50–950)
