analogous
Analogous · hue 83°
Five sRGB colours from explicit HSL steps. The strongest measured pair is #3E330F / #D6F5D6 at 10.62:1.
What is in this study
| Construction | analogous |
|---|---|
| SVG dimensions | 960 × 600 |
| Geometric primitives | 5 |
| Colours | #3E330F, #7B8320, #92CD32, #A1E184, #D6F5D6 |
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 | #3E330F | #7B8320 | #92CD32 | #A1E184 | #D6F5D6 |
|---|---|---|---|---|---|
| #3E330F | 1.00:1 | 3.03:1 | 6.53:1 | 8.08:1 | 10.62:1 |
| #7B8320 | 3.03:1 | 1.00:1 | 2.15:1 | 2.67:1 | 3.50:1 |
| #92CD32 | 6.53:1 | 2.15:1 | 1.00:1 | 1.24:1 | 1.63:1 |
| #A1E184 | 8.08:1 | 2.67:1 | 1.24:1 | 1.00:1 | 1.31:1 |
| #D6F5D6 | 10.62:1 | 3.50:1 | 1.63:1 | 1.31: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": 47,
"s": 61,
"l": 15
},
{
"h": 65,
"s": 61,
"l": 32
},
{
"h": 83,
"s": 61,
"l": 50
},
{
"h": 101,
"s": 61,
"l": 70
},
{
"h": 119,
"s": 61,
"l": 90
}
],
"hex": [
"#3E330F",
"#7B8320",
"#92CD32",
"#A1E184",
"#D6F5D6"
],
"contrast_matrix": [
[
1.0,
3.032,
6.528,
8.081,
10.616
],
[
3.032,
1.0,
2.153,
2.665,
3.502
],
[
6.528,
2.153,
1.0,
1.238,
1.626
],
[
8.081,
2.665,
1.238,
1.0,
1.314
],
[
10.616,
3.502,
1.626,
1.314,
1.0
]
],
"strongest_pair": {
"first": "#3E330F",
"second": "#D6F5D6",
"ratio": 10.616
}
}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.