Vintage Film

Desaturated, nostalgic tones from the era of 35mm film.

Mood
Earthy
Colors
5
Space
OKLCH

Vintage Film, color by color

Desaturated, nostalgic tones from the era of 35mm film.

#f1e0db L 0.92 · C 0.02 · H 40
#e1bbaa L 0.82 · C 0.05 · H 45
#c79071 L 0.7 · C 0.08 · H 50
#9e6033 L 0.55 · C 0.1 · H 55
#513217 L 0.35 · C 0.06 · H 60

Create Vintage Film in PHP

Parse the catalog values as one ordered scale. The input remains readable while PHPColor normalizes every color.

<?php

use PhpColor\Color\Palette\ColorPalette;

$palette = ColorPalette::parse([
    'oklch(0.92 0.02 40)',
    'oklch(0.82 0.05 45)',
    'oklch(0.70 0.08 50)',
    'oklch(0.55 0.10 55)',
    'oklch(0.35 0.06 60)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.92 0.02 40)', 'oklch(0.82 0.05 45)', 'oklch(0.70 0.08 50)', 'oklch(0.55 0.10 55)', 'oklch(0.35 0.06 60)', ]);

Inspect every palette color

Palette operations preserve order, so iteration and conversion produce values in the same visual sequence.

<?php

foreach ($palette->to('oklch') as $color) {
    echo $color->toCss().PHP_EOL;
}
foreach ($palette->to('oklch') as $color) { echo $color->toCss().PHP_EOL; }

Format Vintage Film for CSS

Export hexadecimal values for compact tokens or convert the full palette to perceptual CSS notation.

<?php

$hex = $palette->toHex();
$css = $palette->to('oklch')->toCss();
$hex = $palette->toHex(); $css = $palette->to('oklch')->toCss();

Keep exploring

Build on Vintage Film