analogous
Analogous · hue 263°
Five sRGB colours from explicit HSL steps. The strongest measured pair is #0F1C3E / #F5D6F3 at 12.58:1.
What is in this study
| Construction | analogous |
|---|---|
| SVG dimensions | 960 × 600 |
| Geometric primitives | 5 |
| Colours | #0F1C3E, #252083, #6D32CD, #C784E1, #F5D6F3 |
HSL values are converted to eight-bit sRGB colours. Relative luminance and contrast are calculated from those final hex values using the WCAG sRGB formula. A ratio describes a colour pair; it does not certify the accessibility of a whole design.
Measured contrast pairs
| Pair | #0F1C3E | #252083 | #6D32CD | #C784E1 | #F5D6F3 |
|---|---|---|---|---|---|
| #0F1C3E | 1.00:1 | 1.28:1 | 2.38:1 | 6.22:1 | 12.58:1 |
| #252083 | 1.28:1 | 1.00:1 | 1.85:1 | 4.85:1 | 9.79:1 |
| #6D32CD | 2.38:1 | 1.85:1 | 1.00:1 | 2.62:1 | 5.29:1 |
| #C784E1 | 6.22:1 | 4.85:1 | 2.62:1 | 1.00:1 | 2.02:1 |
| #F5D6F3 | 12.58:1 | 9.79:1 | 5.29:1 | 2.02:1 | 1.00:1 |
Ratios use the exact exported sRGB hex values. They describe these pairs, not the accessibility of an entire interface.
The calculations follow the W3C definition of sRGB relative luminance; the contrast ratio is (lighter luminance + 0.05) / (darker luminance + 0.05).
The actual parameters
{
"hsl": [
{
"h": 223,
"s": 61,
"l": 15
},
{
"h": 243,
"s": 61,
"l": 32
},
{
"h": 263,
"s": 61,
"l": 50
},
{
"h": 283,
"s": 61,
"l": 70
},
{
"h": 303,
"s": 61,
"l": 90
}
],
"hex": [
"#0F1C3E",
"#252083",
"#6D32CD",
"#C784E1",
"#F5D6F3"
],
"contrast_matrix": [
[
1.0,
1.284,
2.379,
6.223,
12.576
],
[
1.284,
1.0,
1.852,
4.846,
9.792
],
[
2.379,
1.852,
1.0,
2.616,
5.286
],
[
6.223,
4.846,
2.616,
1.0,
2.021
],
[
12.576,
9.792,
5.286,
2.021,
1.0
]
],
"strongest_pair": {
"first": "#0F1C3E",
"second": "#F5D6F3",
"ratio": 12.576
}
}The JSON download also records every geometric primitive and the SHA-256 of the SVG file.
Make a variation
Copy the supplied --study-color-1 through --study-color-5 CSS variables into a stylesheet and assign them to text, backgrounds, or borders. If you change a hex value, calculate its contrast again before choosing a text and background pair.
Keep the SVG and CSS in the same directory when using the background-image rule. The CSS also exports the colours as custom properties.