Tangerine Pop
A pastel yellow with the freshness of a spring yellow.
Create Tangerine Pop in PHP
Parse the catalog’s canonical value once, then keep the resulting color object throughout the rest of your code.
<?php
use PhpColor\Color\Color;
$tangerinePop = Color::parse('#FFCC00');
use PhpColor\Color\Color;
$tangerinePop = Color::parse('#FFCC00');
ColorInterface
$tangerinePop
#ffcc00 · oklch(0.8652 0.1768 90.4)
Build a Tangerine Pop harmony
tetradic() keeps Tangerine Pop and adds three partners at equal quarter-turns around the OKLCH hue wheel.
<?php
$harmony = $tangerinePop->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
$harmony = $tangerinePop->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
- 0
#ffcc00 - 1
#00f7d8 - 2
#a7caff - 3
#ff9dcd
Generate a Tangerine Pop scale
Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.
<?php
$oklch = $tangerinePop->to('oklch');
foreach ([0.97, 0.92, 0.84, 0.74, 0.66, 0.58, 0.48, 0.40, 0.32, 0.24, 0.16] as $lightness) {
$step = $oklch->withChannel('l', $lightness);
}
$oklch = $tangerinePop->to('oklch');
foreach ([0.97, 0.92, 0.84, 0.74, 0.66, 0.58, 0.48, 0.40, 0.32, 0.24, 0.16] as $lightness) {
$step = $oklch->withChannel('l', $lightness);
}
50
100
200
300
400
500
600
700
800
900
950
Format Tangerine Pop for the web
The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.
<?php
$hex = $tangerinePop->toHex();
$rgb = $tangerinePop->toCss('srgb');
$oklch = $tangerinePop->to('oklch')->toCss();
$hex = $tangerinePop->toHex();
$rgb = $tangerinePop->toCss('srgb');
$oklch = $tangerinePop->to('oklch')->toCss();
- hex
#ffcc00- rgb
rgb(255 204 0)- oklch
oklch(0.865209 0.176828 90.3816)