HEX to OKLCH: #DB7093
Also known as: CSS palevioletred
Result
#DB7093 → oklch(0.678 0.138 0.7)
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. sRGB → linear
R: 219/255 = 0.85882 → 0.708376 (((x + 0.055) / 1.055)^2.4) G: 112/255 = 0.43922 → 0.162029 (((x + 0.055) / 1.055)^2.4) B: 147/255 = 0.57647 → 0.291771 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.393920 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.291736 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.292007
3. cube root
l′ = ∛0.393920 = 0.733054 m′ = ∛0.291736 = 0.663229 s′ = ∛0.292007 = 0.663434
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.67792 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.13821 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00164
5. Oklab → OKLCH
C = √(a² + b²) = 0.13822 H = atan2(b, a) = 0.681° L = 0.67792
6. OKLCH
oklch(0.67792 0.13822 0.681) rounded: oklch(0.678 0.138 0.7)
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?