In der VorschauZu dieser PaletteIm Generator öffnen
Code
/* Sweet Pastel — colorset.net */
:root {
--color-1: #F4C2C2;
--color-2: #FFE5B4;
--color-3: #D5F4E6;
--color-4: #B8E6B8;
--color-5: #C8B2DB;
--color-bg: #D5F4E6;
--color-surface: #E5F8EF;
--color-border: #BBDCCD;
--color-text: #594568;
--color-muted: #73667E;
--color-primary: #937EA5;
--color-on-primary: #000000;
--color-accent: #689369;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130C18;
--color-surface: #1D1622;
--color-border: #322A39;
--color-text: #D5F4E6;
--color-muted: #708D80;
--color-primary: #C8B2DB;
--color-on-primary: #130C18;
--color-accent: #B8E6B8;
--color-on-accent: #130C18;
}
}
Farbwerte
| Farbe | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Rollen & Kontrast
Die Originalfarben bleiben erhalten; Rollen werden nur angepasst, wenn der Kontrast es erfordert.
| Rolle | Hellmodus | Dunkelmodus |
|---|---|---|
| Hintergrund | aus der Palette · Farbe 3 | für Kontrast angepasst · aus #C8B2DB |
| Fläche | abgeleitet | abgeleitet |
| Rahmen | abgeleitet | abgeleitet |
| Text | für Kontrast angepasst · aus #C8B2DB | aus der Palette · Farbe 3 |
| Sekundärtext | abgeleitet | abgeleitet |
| Primärfarbe | für Kontrast angepasst · aus #C8B2DB | aus der Palette · Farbe 5 |
| Auf Primärfarbe | abgeleitet | abgeleitet |
| Akzentfarbe | für Kontrast angepasst · aus #C8B2DB | aus der Palette · Farbe 4 |
| Auf Akzentfarbe | abgeleitet | abgeleitet |
Kontrast
| Paar | Beispiel | Kontrast | WCAG |
|---|---|---|---|
| Text auf Hintergrund | 7,23:1 | AAA erfüllt 4.5:1 | |
| Text auf Fläche | 7,68:1 | AAA erfüllt 4.5:1 | |
| Sekundärtext auf Hintergrund | 4,56:1 | AA erfüllt 4.5:1 | |
| Beschriftung auf Primärfarbe | 5,77:1 | AA erfüllt 4.5:1 | |
| Beschriftung auf Akzentfarbe | 5,97:1 | AA erfüllt 4.5:1 | |
| Primärfarbe auf Hintergrund | 3,11:1 | AA groß erfüllt 3:1 | |
| Akzentfarbe auf Hintergrund | 3,00:1 | AA groß erfüllt 3:1 |
| Paar | Beispiel | Kontrast | WCAG |
|---|---|---|---|
| Text auf Hintergrund | 16,38:1 | AAA erfüllt 4.5:1 | |
| Text auf Fläche | 15,05:1 | AAA erfüllt 4.5:1 | |
| Sekundärtext auf Hintergrund | 5,31:1 | AA erfüllt 4.5:1 | |
| Beschriftung auf Primärfarbe | 9,92:1 | AAA erfüllt 4.5:1 | |
| Beschriftung auf Akzentfarbe | 13,76:1 | AAA erfüllt 4.5:1 | |
| Primärfarbe auf Hintergrund | 9,92:1 | AAA erfüllt 3:1 | |
| Akzentfarbe auf Hintergrund | 13,76:1 | AAA erfüllt 3:1 |
Jede Farbe auf jeder Farbe
Zeilen sind Hintergründe, Spalten Textfarben, gemessen mit den echten Palettenfarben. Grenzwerte: AAA 7:1, AA 4,5:1, AA großer Text 3:1.
| Hintergrund / Text | #F4C2C2 (Text 1) | #FFE5B4 (Text 2) | #D5F4E6 (Text 3) | #B8E6B8 (Text 4) | #C8B2DB (Text 5) |
|---|---|---|---|---|---|
| #F4C2C2 | Gleiche Farbe | 1,28— | 1,34— | 1,13— | 1,23— |
| #FFE5B4 | 1,28— | Gleiche Farbe | 1,05— | 1,14— | 1,58— |
| #D5F4E6 | 1,34— | 1,05— | Gleiche Farbe | 1,19— | 1,65— |
| #B8E6B8 | 1,13— | 1,14— | 1,19— | Gleiche Farbe | 1,39— |
| #C8B2DB | 1,23— | 1,58— | 1,65— | 1,39— | Gleiche Farbe |
Stufen
Farbstufen (50–950)
