- Get link
- X
- Other Apps
Multi-Color Dynamic Text Styling
COLORFUL
TEXT
COMPILATION
[Red]
[Orange]
[Yellow]
[Green]
[Cyan]
[Purple]
[Pink]
/* Inline CSS Multi-Color Snippet */
const styledText = "Vibrant Palette";
console.log(styledText, 2026);
const styledText = "Vibrant Palette";
console.log(styledText, 2026);
In standard CSS, there is no keyword named brightest-red.
To achieve the absolute brightest, purest, and most saturated red on modern screens, you use specific color values depending on the color space:
1. Modern Wide-Gamut CSS (Brightest Displayable Red)
On modern screens (P3/OLED displays), the color() or oklch() functions produce a significantly brighter red than standard sRGB:
/* P3 Wide Gamut - Brightest vivid red on supported screens */
background-color: color(display-p3 1 0 0);
/* OKLCH Color Space - Maximum chroma red */
background-color: oklch(0.63 0.26 29.23);
background-color: color(display-p3 1 0 0);
/* OKLCH Color Space - Maximum chroma red */
background-color: oklch(0.63 0.26 29.23);
2. Standard sRGB CSS (Brightest Pure Red)
For standard RGB/HEX color models, maximum intensity red is achieved when the red channel is set to 100% / 255 and green/blue are 0:
/* Hexadecimal */
background-color: #ff0000;
/* RGB / RGBA */
background-color: rgb(255, 0, 0);
/* HSL (100% saturation, 50% lightness) */
background-color: hsl(0, 100%, 50%);
/* Standard Named Color */
background-color: red;
background-color: #ff0000;
/* RGB / RGBA */
background-color: rgb(255, 0, 0);
/* HSL (100% saturation, 50% lightness) */
background-color: hsl(0, 100%, 50%);
/* Standard Named Color */
background-color: red;
3. Summary Table
| Format | Code | Description |
|---|---|---|
| P3 Gamut | color(display-p3 1 0 0) | Brightest possible on modern displays |
| Hex | #ff0000 | Standard pure red |
| RGB | rgb(255, 0, 0) | Maximum red channel value |
| HSL | hsl(0, 100%, 50%) | Pure hue at maximum saturation |
| CSS Keyword | red | Equivalent to #ff0000 |
<!-- Container for Blogger Post -->
<div style="font-family: Arial, sans-serif; max-width: 700px; margin: 0 auto; line-height: 1.6; color: #333333; background-color: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e0e0e0; box-shadow: 0 4px 12px rgba(0,0,0,0.05);">
<p style="font-size: 16px; margin-top: 0;">In standard CSS, <strong>there is no keyword named <span style="color: #ff0000; font-family: monospace; font-weight: bold;">brightest-red</span></strong>.</p>
<p style="font-size: 15px;">To achieve the absolute <span style="color: #ff0000; font-weight: bold;">brightest</span>, <span style="color: #d32f2f; font-weight: bold;">purest</span>, and <span style="color: #b71c1c; font-weight: bold;">most saturated red</span> on modern screens, you use specific color values depending on the color space:</p>
<hr style="border: 0; border-top: 1px solid #eeeeee; margin: 20px 0;" />
<!-- Section 1 -->
<h3 style="color: #1565c0; font-size: 18px; margin-bottom: 8px;">1. Modern Wide-Gamut CSS (Brightest Displayable Red)</h3>
<p style="font-size: 14px; margin-bottom: 12px;">On modern screens (P3/OLED displays), the <span style="color: #0d47a1; font-family: monospace;">color()</span> or <span style="color: #1976d2; font-family: monospace;">oklch()</span> functions produce a significantly brighter red than standard sRGB:</p>
<!-- Code Block 1 -->
<div style="background-color: #1e1e1e; color: #d4d4d4; padding: 15px; border-radius: 8px; font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; line-height: 1.5; overflow-x: auto; margin-bottom: 20px;">
<span style="color: #6a9955;">/* P3 Wide Gamut - Brightest vivid red on supported screens */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">color</span><span style="color: #da70d6;">(</span><span style="color: #ce9178;">display-p3</span> <span style="color: #ff0000; font-weight: bold;">1</span> <span style="color: #b5cea8;">0</span> <span style="color: #b5cea8;">0</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* OKLCH Color Space - Maximum chroma red */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">oklch</span><span style="color: #da70d6;">(</span><span style="color: #b5cea8;">0.63</span> <span style="color: #b5cea8;">0.26</span> <span style="color: #ff0000; font-weight: bold;">29.23</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span>
</div>
<hr style="border: 0; border-top: 1px solid #eeeeee; margin: 20px 0;" />
<!-- Section 2 -->
<h3 style="color: #1565c0; font-size: 18px; margin-bottom: 8px;">2. Standard sRGB CSS (Brightest Pure Red)</h3>
<p style="font-size: 14px; margin-bottom: 12px;">For standard RGB/HEX color models, maximum intensity red is achieved when the red channel is set to <span style="color: #ff0000; font-weight: bold;">100%</span> / <span style="color: #ff0000; font-weight: bold;">255</span> and green/blue are <span style="color: #008000; font-weight: bold;">0</span>:</p>
<!-- Code Block 2 -->
<div style="background-color: #1e1e1e; color: #d4d4d4; padding: 15px; border-radius: 8px; font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; line-height: 1.5; overflow-x: auto; margin-bottom: 20px;">
<span style="color: #6a9955;">/* Hexadecimal */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #ff0000; font-weight: bold;">#ff0000</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* RGB / RGBA */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">rgb</span><span style="color: #da70d6;">(</span><span style="color: #ff0000; font-weight: bold;">255</span><span style="color: #d4d4d4;">,</span> <span style="color: #b5cea8;">0</span><span style="color: #d4d4d4;">,</span> <span style="color: #b5cea8;">0</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* HSL (100% saturation, 50% lightness) */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">hsl</span><span style="color: #da70d6;">(</span><span style="color: #b5cea8;">0</span><span style="color: #d4d4d4;">,</span> <span style="color: #ff0000; font-weight: bold;">100%</span><span style="color: #d4d4d4;">,</span> <span style="color: #b5cea8;">50%</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* Standard Named Color */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #ff0000; font-weight: bold;">red</span><span style="color: #d4d4d4;">;</span>
</div>
<hr style="border: 0; border-top: 1px solid #eeeeee; margin: 20px 0;" />
<!-- Section 3: Color Summary Table -->
<h3 style="color: #1565c0; font-size: 18px; margin-bottom: 12px;">3. Summary Table</h3>
<div style="overflow-x: auto;">
<table style="width: 100%; border-collapse: collapse; font-size: 14px; text-align: left;">
<thead>
<tr style="background-color: #f5f5f5; border-bottom: 2px solid #cccccc;">
<th style="padding: 10px; color: #333333;">Format</th>
<th style="padding: 10px; color: #333333;">Code</th>
<th style="padding: 10px; color: #333333;">Description</th>
</tr>
</thead>
<tbody>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #8e24aa;">P3 Gamut</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">color(display-p3 1 0 0)</td>
<td style="padding: 10px;"><span style="color: #e53935; font-weight: bold;">Brightest possible</span> on modern displays</td>
</tr>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #0288d1;">Hex</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">#ff0000</td>
<td style="padding: 10px; color: #555555;">Standard pure red</td>
</tr>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #00897b;">RGB</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">rgb(255, 0, 0)</td>
<td style="padding: 10px; color: #555555;">Maximum red channel value</td>
</tr>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #fb8c00;">HSL</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">hsl(0, 100%, 50%)</td>
<td style="padding: 10px; color: #555555;">Pure hue at maximum saturation</td>
</tr>
<tr>
<td style="padding: 10px; font-weight: bold; color: #43a047;">CSS Keyword</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">red</td>
<td style="padding: 10px; color: #555555;">Equivalent to <span style="font-family: monospace; color: #ff0000;">#ff0000</span></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Container for Blogger Post -->
<div style="font-family: Arial, sans-serif; max-width: 700px; margin: 0 auto; line-height: 1.6; color: #333333; background-color: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #e0e0e0; box-shadow: 0 4px 12px rgba(0,0,0,0.05);">
<p style="font-size: 16px; margin-top: 0;">In standard CSS, <strong>there is no keyword named <span style="color: #ff0000; font-family: monospace; font-weight: bold;">brightest-red</span></strong>.</p>
<p style="font-size: 15px;">To achieve the absolute <span style="color: #ff0000; font-weight: bold;">brightest</span>, <span style="color: #d32f2f; font-weight: bold;">purest</span>, and <span style="color: #b71c1c; font-weight: bold;">most saturated red</span> on modern screens, you use specific color values depending on the color space:</p>
<hr style="border: 0; border-top: 1px solid #eeeeee; margin: 20px 0;" />
<!-- Section 1 -->
<h3 style="color: #1565c0; font-size: 18px; margin-bottom: 8px;">1. Modern Wide-Gamut CSS (Brightest Displayable Red)</h3>
<p style="font-size: 14px; margin-bottom: 12px;">On modern screens (P3/OLED displays), the <span style="color: #0d47a1; font-family: monospace;">color()</span> or <span style="color: #1976d2; font-family: monospace;">oklch()</span> functions produce a significantly brighter red than standard sRGB:</p>
<!-- Code Block 1 -->
<div style="background-color: #1e1e1e; color: #d4d4d4; padding: 15px; border-radius: 8px; font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; line-height: 1.5; overflow-x: auto; margin-bottom: 20px;">
<span style="color: #6a9955;">/* P3 Wide Gamut - Brightest vivid red on supported screens */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">color</span><span style="color: #da70d6;">(</span><span style="color: #ce9178;">display-p3</span> <span style="color: #ff0000; font-weight: bold;">1</span> <span style="color: #b5cea8;">0</span> <span style="color: #b5cea8;">0</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* OKLCH Color Space - Maximum chroma red */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">oklch</span><span style="color: #da70d6;">(</span><span style="color: #b5cea8;">0.63</span> <span style="color: #b5cea8;">0.26</span> <span style="color: #ff0000; font-weight: bold;">29.23</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span>
</div>
<hr style="border: 0; border-top: 1px solid #eeeeee; margin: 20px 0;" />
<!-- Section 2 -->
<h3 style="color: #1565c0; font-size: 18px; margin-bottom: 8px;">2. Standard sRGB CSS (Brightest Pure Red)</h3>
<p style="font-size: 14px; margin-bottom: 12px;">For standard RGB/HEX color models, maximum intensity red is achieved when the red channel is set to <span style="color: #ff0000; font-weight: bold;">100%</span> / <span style="color: #ff0000; font-weight: bold;">255</span> and green/blue are <span style="color: #008000; font-weight: bold;">0</span>:</p>
<!-- Code Block 2 -->
<div style="background-color: #1e1e1e; color: #d4d4d4; padding: 15px; border-radius: 8px; font-family: 'Consolas', 'Courier New', monospace; font-size: 13px; line-height: 1.5; overflow-x: auto; margin-bottom: 20px;">
<span style="color: #6a9955;">/* Hexadecimal */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #ff0000; font-weight: bold;">#ff0000</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* RGB / RGBA */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">rgb</span><span style="color: #da70d6;">(</span><span style="color: #ff0000; font-weight: bold;">255</span><span style="color: #d4d4d4;">,</span> <span style="color: #b5cea8;">0</span><span style="color: #d4d4d4;">,</span> <span style="color: #b5cea8;">0</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* HSL (100% saturation, 50% lightness) */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #dcdcaa;">hsl</span><span style="color: #da70d6;">(</span><span style="color: #b5cea8;">0</span><span style="color: #d4d4d4;">,</span> <span style="color: #ff0000; font-weight: bold;">100%</span><span style="color: #d4d4d4;">,</span> <span style="color: #b5cea8;">50%</span><span style="color: #da70d6;">)</span><span style="color: #d4d4d4;">;</span><br /><br />
<span style="color: #6a9955;">/* Standard Named Color */</span><br />
<span style="color: #9cdcfe;">background-color</span><span style="color: #d4d4d4;">:</span> <span style="color: #ff0000; font-weight: bold;">red</span><span style="color: #d4d4d4;">;</span>
</div>
<hr style="border: 0; border-top: 1px solid #eeeeee; margin: 20px 0;" />
<!-- Section 3: Color Summary Table -->
<h3 style="color: #1565c0; font-size: 18px; margin-bottom: 12px;">3. Summary Table</h3>
<div style="overflow-x: auto;">
<table style="width: 100%; border-collapse: collapse; font-size: 14px; text-align: left;">
<thead>
<tr style="background-color: #f5f5f5; border-bottom: 2px solid #cccccc;">
<th style="padding: 10px; color: #333333;">Format</th>
<th style="padding: 10px; color: #333333;">Code</th>
<th style="padding: 10px; color: #333333;">Description</th>
</tr>
</thead>
<tbody>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #8e24aa;">P3 Gamut</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">color(display-p3 1 0 0)</td>
<td style="padding: 10px;"><span style="color: #e53935; font-weight: bold;">Brightest possible</span> on modern displays</td>
</tr>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #0288d1;">Hex</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">#ff0000</td>
<td style="padding: 10px; color: #555555;">Standard pure red</td>
</tr>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #00897b;">RGB</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">rgb(255, 0, 0)</td>
<td style="padding: 10px; color: #555555;">Maximum red channel value</td>
</tr>
<tr style="border-bottom: 1px solid #eeeeee;">
<td style="padding: 10px; font-weight: bold; color: #fb8c00;">HSL</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">hsl(0, 100%, 50%)</td>
<td style="padding: 10px; color: #555555;">Pure hue at maximum saturation</td>
</tr>
<tr>
<td style="padding: 10px; font-weight: bold; color: #43a047;">CSS Keyword</td>
<td style="padding: 10px; font-family: monospace; color: #ff0000; font-weight: bold;">red</td>
<td style="padding: 10px; color: #555555;">Equivalent to <span style="font-family: monospace; color: #ff0000;">#ff0000</span></td>
</tr>
</tbody>
</table>
</div>
</div>
Comments