Rose Quartz

A pastel, warm red with the energy of a warm sky.

Hex
#f7cac9
sRGB
rgb(247 202 201)
OKLCH
oklch(0.8777 0.0512 19.7)

Rose Quartz is a curated PHPColor catalog color with the canonical value #f7cac9.

Create Rose Quartz 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;

$roseQuartz = Color::parse('#F7CAC9');
use PhpColor\Color\Color; $roseQuartz = Color::parse('#F7CAC9');

ColorInterface

$roseQuartz

#f7cac9 · oklch(0.8777 0.0512 19.7)

Build a Rose Quartz harmony

tetradic() keeps Rose Quartz and adds three partners at equal quarter-turns around the OKLCH hue wheel.

<?php

$harmony = $roseQuartz->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $roseQuartz->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#f7cac9
  2. 1#d8dab4
  3. 2#b0e2e4
  4. 3#d5d2f7
Rose Quartz and its three generated partners

Generate a Rose Quartz scale

Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.

<?php

$oklch = $roseQuartz->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 = $roseQuartz->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 Rose Quartz for the web

The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.

<?php

$hex   = $roseQuartz->toHex();
$rgb   = $roseQuartz->toCss('srgb');
$oklch = $roseQuartz->to('oklch')->toCss();
$hex = $roseQuartz->toHex(); $rgb = $roseQuartz->toCss('srgb'); $oklch = $roseQuartz->to('oklch')->toCss();
hex
#f7cac9
rgb
rgb(247 202 201)
oklch
oklch(0.877667 0.0512243 19.6691)

Keep exploring

Continue from Rose Quartz