HSL to HEX: #DB7093
Also known as: CSS palevioletred
Result
hsl(340.37 59.78% 64.90%) → #DB7093
Values are shown at full precision, so converting back gives exactly #db7093. 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. input
H = 340.37°, S = 59.78%, L = 64.90%
2. C
C = (1 − |2L − 1|) × S = 0.41966
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.13730 (H / 60° = 5.6728, sector 5)
4. m
m = L − C / 2 = 0.43917
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.41966, 0.00000, 0.13730) R = round((0.41966 + 0.43917) × 255) = 219 G = round((0.00000 + 0.43917) × 255) = 112 B = round((0.13730 + 0.43917) × 255) = 147
6. RGB → HEX
#DB7093
All formats
- HEX
- #db7093
- RGB
- rgb(219 112 147)
- RGB (legacy)
- rgb(219, 112, 147)
- HSL
- hsl(340.37 59.78% 64.90%) → hsl(340 60% 65%)
- HWB
- hwb(340 44% 14%)
- OKLCH
- oklch(0.678 0.138 0.7) · oklch(67.8% 0.138 0.7)
- OKLab
- oklab(0.678 0.138 0.002)
- Lab (D50)
- lab(60.91 45.40 1.21)
- LCH (D50)
- lch(60.91 45.42 1.53)
- Display P3
- color(display-p3 0.8044 0.4616 0.5744)
- Linear sRGB
- color(srgb-linear 0.7084 0.1620 0.2918)
Gamut: sRGB and Display P3
#DB7093 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.230 and Display P3 reaches 0.295; this color uses 60% of the sRGB chroma available.
CSS snippets
.element {
color: #db7093;
color: rgb(219 112 147);
color: hsl(340 60% 65%);
color: oklch(0.678 0.138 0.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.678 0.138 0.7);
}
/* arbitrary values */
class="text-[#db7093] bg-[oklch(0.678_0.138_0.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8044 0.4616 0.5744); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #db7093 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 rose-400#FB7185
- v3 pink-400#F472B6
- lightcoral#F08080
- rose-400#FF637E
- v3 red-400#F87171
- v3 pink-500#EC4899
- pink-400#FB64B6
- hotpink#FF69B4
Lighter and darker, same hue and chroma
- #F083A5 · oklch(0.738 0.138 0.7) · ΔL +0.06
- #C65E81 · oklch(0.618 0.138 0.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?