HEX to RGB: #D8BFD8
Also known as: CSS thistle
Result
#D8BFD8 → rgb(216 191 216)
Values are shown at full precision, so converting back gives exactly #d8bfd8. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. HEX → pairs
#D8BFD8 → D8 | BF | D8
2. base 16 → base 10
R = D8₁₆ = 13×16 + 8 = 216 G = BF₁₆ = 11×16 + 15 = 191 B = D8₁₆ = 13×16 + 8 = 216
3. RGB
rgb(216 191 216)
All formats
- HEX
- #d8bfd8
- RGB
- rgb(216 191 216)
- RGB (legacy)
- rgb(216, 191, 216)
- HSL
- hsl(300.00 24.27% 79.80%) → hsl(300 24% 80%)
- HWB
- hwb(300 75% 15%)
- OKLCH
- oklch(0.833 0.044 326.0) · oklch(83.3% 0.044 326.0)
- OKLab
- oklab(0.833 0.036 -0.025)
- Lab (D50)
- lab(80.06 12.41 -9.14)
- LCH (D50)
- lch(80.06 15.41 323.63)
- Display P3
- color(display-p3 0.8308 0.7525 0.8405)
- Linear sRGB
- color(srgb-linear 0.6867 0.5210 0.6867)
Gamut: sRGB and Display P3
#D8BFD8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.158 and Display P3 reaches 0.175; this color uses 28% of the sRGB chroma available.
CSS snippets
.element {
color: #d8bfd8;
color: rgb(216 191 216);
color: hsl(300 24% 80%);
color: oklch(0.833 0.044 326.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.833 0.044 326.0);
}
/* arbitrary values */
class="text-[#d8bfd8] bg-[oklch(0.833_0.044_326.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8308 0.7525 0.8405); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #d8bfd8 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- mauve-300#D7D0D7
- silver#C0C0C0
- lightsteelblue#B0C4DE
- taupe-300#D8D2D0
- zinc-300#D4D4D8
- lightgray#D3D3D3
- v3 slate-300#CBD5E1
- slate-300#CAD5E2
Lighter and darker, same hue and chroma
- #ECD2EC · oklch(0.893 0.044 326.0) · ΔL +0.06
- #C5ACC5 · oklch(0.773 0.044 326.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?