PreviewingGo to this paletteOpen in generator
Code
/* Hip Hop — colorset.net */
:root {
--color-1: #FFD700;
--color-2: #DAA520;
--color-3: #B8860B;
--color-4: #000000;
--color-5: #FFFFFF;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #000000;
--color-muted: #4D4D4D;
--color-primary: #B8860B;
--color-on-primary: #000000;
--color-accent: #8C8C8C;
--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: #B8860B;
--color-on-primary: #000000;
--color-accent: #5B5B5B;
--color-on-accent: #FFFFFF;
}
}
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 5 | from palette · color 4 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 4 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B8860B | adjusted for contrast · from #B8860B |
| 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 | 6.45:1 | AA pass 4.5:1 | |
| Label on accent | 6.25:1 | AA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 3.36: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 | 6.45:1 | AA pass 4.5:1 | |
| Label on accent | 6.79:1 | AA pass 4.5:1 | |
| Primary on background | 6.45:1 | AA pass 3:1 | |
| Accent on background | 3.09:1 | AA Large 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 | #FFD700 (Text 1) | #DAA520 (Text 2) | #B8860B (Text 3) | #000000 (Text 4) | #FFFFFF (Text 5) |
|---|---|---|---|---|---|
| #FFD700 | Same color | 1.60— | 2.32— | 14.97AAA | 1.40— |
| #DAA520 | 1.60— | Same color | 1.45— | 9.38AAA | 2.24— |
| #B8860B | 2.32— | 1.45— | Same color | 6.45AA | 3.25AA Large |
| #000000 | 14.97AAA | 9.38AAA | 6.45AA | Same color | 21.00AAA |
| #FFFFFF | 1.40— | 2.24— | 3.25AA Large | 21.00AAA | Same color |
Shades
Shades and tints (50–950)
