PreviewingGo to this paletteOpen in generator
Code
/* Diamond White — colorset.net */
:root {
--color-1: #B9F2FF;
--color-2: #E0FFFF;
--color-3: #F0FFFF;
--color-4: #FFFFFF;
--color-5: #F8F8FF;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #235A65;
--color-muted: #54767E;
--color-primary: #5F95A1;
--color-on-primary: #000000;
--color-accent: #36616B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #031216;
--color-surface: #0B1C20;
--color-border: #1C3237;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #B9F2FF;
--color-on-primary: #031216;
--color-accent: #8BB9C4;
--color-on-accent: #031216;
}
}
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 4 | adjusted for contrast · from #B9F2FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B9F2FF | from palette · color 4 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B9F2FF | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B9F2FF | adjusted for contrast · from #B9F2FF |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 6.30:1 | AA pass 4.5:1 | |
| Label on accent | 6.82:1 | AA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 6.82:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.06:1 | AAA pass 4.5:1 | |
| Text on surface | 17.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.89:1 | AA pass 4.5:1 | |
| Label on primary | 15.62:1 | AAA pass 4.5:1 | |
| Label on accent | 8.92:1 | AAA pass 4.5:1 | |
| Primary on background | 15.62:1 | AAA pass 3:1 | |
| Accent on background | 8.92: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 | #B9F2FF (Text 1) | #E0FFFF (Text 2) | #F0FFFF (Text 3) | #FFFFFF (Text 4) | #F8F8FF (Text 5) |
|---|---|---|---|---|---|
| #B9F2FF | Same color | 1.16— | 1.19— | 1.22— | 1.15— |
| #E0FFFF | 1.16— | Same color | 1.03— | 1.05— | 1.00— |
| #F0FFFF | 1.19— | 1.03— | Same color | 1.03— | 1.03— |
| #FFFFFF | 1.22— | 1.05— | 1.03— | Same color | 1.06— |
| #F8F8FF | 1.15— | 1.00— | 1.03— | 1.06— | Same color |
Shades
Shades and tints (50–950)
