Small Colour Collections

analogous

Analogous · hue 263°

Five sRGB colours from explicit HSL steps. The strongest measured pair is #0F1C3E / #F5D6F3 at 12.58:1.

Analogous · hue 263°
This preview uses the exact downloadable SVG.

What is in this study

Constructionanalogous
SVG dimensions960 × 600
Geometric primitives5
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
#0F1C3E1.00:11.28:12.38:16.22:112.58:1
#2520831.28:11.00:11.85:14.85:19.79:1
#6D32CD2.38:11.85:11.00:12.62:15.29:1
#C784E16.22:14.85:12.62:11.00:12.02:1
#F5D6F312.58:19.79:15.29:12.02:11.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.