Tea Rose
A pastel, warm red with the energy of a warm sky.
Create Tea Rose 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;
$teaRose = Color::parse('#F4C2C2');
use PhpColor\Color\Color;
$teaRose = Color::parse('#F4C2C2');
ColorInterface
$teaRose
#f4c2c2 · oklch(0.8582 0.0574 18.3)
Build a Tea Rose harmony
tetradic() keeps Tea Rose and adds three partners at equal quarter-turns around the OKLCH hue wheel.
<?php
$harmony = $teaRose->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
$harmony = $teaRose->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
- 0
#f4c2c2 - 1
#d3d4a9 - 2
#a4ddde - 3
#cecbf5
Generate a Tea Rose scale
Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.
<?php
$oklch = $teaRose->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 = $teaRose->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 Tea Rose for the web
The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.
<?php
$hex = $teaRose->toHex();
$rgb = $teaRose->toCss('srgb');
$oklch = $teaRose->to('oklch')->toCss();
$hex = $teaRose->toHex();
$rgb = $teaRose->toCss('srgb');
$oklch = $teaRose->to('oklch')->toCss();
- hex
#f4c2c2- rgb
rgb(244 194 194)- oklch
oklch(0.858167 0.057409 18.3323)