PreviewingGo to this paletteOpen in generator
Code
/* Crystal Ocean — colorset.net */
:root {
--color-1: #FFFF00;
--color-2: #E0FFFF;
--color-3: #008080;
--color-4: #FFE135;
--color-5: #AFEEEE;
--color-bg: #E0FFFF;
--color-surface: #D7F6F6;
--color-border: #BBDEDE;
--color-text: #005A5A;
--color-muted: #4F7272;
--color-primary: #8F8F00;
--color-on-primary: #000000;
--color-accent: #008080;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001313;
--color-surface: #011E1E;
--color-border: #113434;
--color-text: #E0FFFF;
--color-muted: #769292;
--color-primary: #FFFF00;
--color-on-primary: #001313;
--color-accent: #008080;
--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 2 | adjusted for contrast · from #008080 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #008080 | from palette · color 2 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #008080 | from palette · color 1 |
| On primary | derived | derived |
| Accent | from palette · color 3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.63:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 6.10:1 | AA pass 4.5:1 | |
| Label on accent | 4.77:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 4.53:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.06:1 | AAA pass 4.5:1 | |
| Text on surface | 16.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.71:1 | AA pass 4.5:1 | |
| Label on primary | 17.74:1 | AAA pass 4.5:1 | |
| Label on accent | 4.77:1 | AA pass 4.5:1 | |
| Primary on background | 17.74:1 | AAA pass 3:1 | |
| Accent on background | 3.99: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 | #FFFF00 (Text 1) | #E0FFFF (Text 2) | #008080 (Text 3) | #FFE135 (Text 4) | #AFEEEE (Text 5) |
|---|---|---|---|---|---|
| #FFFF00 | Same color | 1.02— | 4.45AA Large | 1.22— | 1.20— |
| #E0FFFF | 1.02— | Same color | 4.53AA | 1.24— | 1.22— |
| #008080 | 4.45AA Large | 4.53AA | Same color | 3.65AA Large | 3.70AA Large |
| #FFE135 | 1.22— | 1.24— | 3.65AA Large | Same color | 1.01— |
| #AFEEEE | 1.20— | 1.22— | 3.70AA Large | 1.01— | Same color |
Shades
Shades and tints (50–950)
