HEX to HSL: #DA70D6
Also known as: CSS orchid
Result
#DA70D6 → hsl(302 59% 65%)
Values are shown at full precision, so converting back gives exactly #da70d6. 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. RGB ÷ 255
R = 0.8549 G = 0.4392 B = 0.8392
2. max, min, Δ
max = 0.8549 min = 0.4392 Δ = max − min = 0.4157
3. L
L = (max + min) / 2 = 0.6471 = 64.71%
4. S
S = Δ / (1 − |2L − 1|) = 0.5889 = 58.89%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.4392 − 0.8392) / 0.4157) mod 6) = 302.26°
6. HSL
hsl(302.26 58.89% 64.71%)
All formats
- HEX
- #da70d6
- RGB
- rgb(218 112 214)
- RGB (legacy)
- rgb(218, 112, 214)
- HSL
- hsl(302.26 58.89% 64.71%) → hsl(302 59% 65%)
- HWB
- hwb(302 44% 15%)
- OKLCH
- oklch(0.702 0.181 328.7) · oklch(70.2% 0.181 328.7)
- OKLab
- oklab(0.702 0.155 -0.094)
- Lab (D50)
- lab(62.75 52.45 -34.10)
- LCH (D50)
- lch(62.75 62.57 326.97)
- Display P3
- color(display-p3 0.8009 0.4613 0.8187)
- Linear sRGB
- color(srgb-linear 0.7011 0.1620 0.6724)
Gamut: sRGB and Display P3
#DA70D6 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.319 and Display P3 reaches 0.352; this color uses 57% of the sRGB chroma available.
CSS snippets
.element {
color: #da70d6;
color: rgb(218 112 214);
color: hsl(302 59% 65%);
color: oklch(0.702 0.181 328.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.702 0.181 328.7);
}
/* arbitrary values */
class="text-[#da70d6] bg-[oklch(0.702_0.181_328.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8009 0.4613 0.8187); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #da70d6 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 fuchsia-400#E879F9
- violet#EE82EE
- v3 pink-400#F472B6
- fuchsia-400#ED6AFF
- purple-400#C27AFF
- pink-400#FB64B6
- v3 purple-400#C084FC
- hotpink#FF69B4
Lighter and darker, same hue and chroma
- #EE83EA · oklch(0.762 0.181 328.7) · ΔL +0.06
- #C65DC2 · oklch(0.642 0.181 328.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?