PreviewingGo to this paletteOpen in generator
Code
/* Ocean Light — colorset.net */
:root {
--color-1: #66AACC;
--color-2: #77BBDD;
--color-3: #88CCEE;
--color-4: #99DDFF;
--color-5: #AAEEFF;
--color-bg: #E9FBFF;
--color-surface: #DFF1F6;
--color-border: #C3D9DF;
--color-text: #005371;
--color-muted: #526E7C;
--color-primary: #4D91B2;
--color-on-primary: #000000;
--color-accent: #3B7E9D;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #00121B;
--color-surface: #071C26;
--color-border: #18313E;
--color-text: #BCEAF6;
--color-muted: #688992;
--color-primary: #66AACC;
--color-on-primary: #00121B;
--color-accent: #99DDFF;
--color-on-accent: #00121B;
}
}
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 | adjusted for contrast · from #AAEEFF | adjusted for contrast · from #66AACC |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #66AACC | adjusted for contrast · from #AAEEFF |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #66AACC | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #66AACC | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.96:1 | AAA pass 4.5:1 | |
| Text on surface | 7.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 6.01:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 4.23:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.73:1 | AAA pass 4.5:1 | |
| Text on surface | 13.50:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 7.43:1 | AAA pass 4.5:1 | |
| Label on accent | 12.83:1 | AAA pass 4.5:1 | |
| Primary on background | 7.43:1 | AAA pass 3:1 | |
| Accent on background | 12.83: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 | #66AACC (Text 1) | #77BBDD (Text 2) | #88CCEE (Text 3) | #99DDFF (Text 4) | #AAEEFF (Text 5) |
|---|---|---|---|---|---|
| #66AACC | Same color | 1.21— | 1.46— | 1.73— | 2.00— |
| #77BBDD | 1.21— | Same color | 1.20— | 1.42— | 1.65— |
| #88CCEE | 1.46— | 1.20— | Same color | 1.19— | 1.37— |
| #99DDFF | 1.73— | 1.42— | 1.19— | Same color | 1.16— |
| #AAEEFF | 2.00— | 1.65— | 1.37— | 1.16— | Same color |
Shades
Shades and tints (50–950)
