Tangerine Pop

A pastel yellow with the freshness of a spring yellow.

Hex
#ffcc00
sRGB
rgb(255 204 0)
OKLCH
oklch(0.8652 0.1768 90.4)

Tangerine Pop is a curated PHPColor catalog color with the canonical value #ffcc00.

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; }
  1. 0#ffcc00
  2. 1#00f7d8
  3. 2#a7caff
  4. 3#ff9dcd
Tangerine Pop and its three generated partners

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
Explore named color scales →

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)

Keep exploring

Continue from Tangerine Pop