HSL to HEX: #7C86FF
Also known as: Tailwind indigo-400
Result
hsl(235.42 100.00% 74.31%) → #7C86FF
Values are shown at full precision, so converting back gives exactly #7c86ff. 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 = 235.42°, S = 100.00%, L = 74.31%
2. C
C = (1 − |2L − 1|) × S = 0.51380
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.03922 (H / 60° = 3.9237, sector 3)
4. m
m = L − C / 2 = 0.48620
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.03922, 0.51380) R = round((0.00000 + 0.48620) × 255) = 124 G = round((0.03922 + 0.48620) × 255) = 134 B = round((0.51380 + 0.48620) × 255) = 255
6. RGB → HEX
#7C86FF
All formats
- HEX
- #7c86ff
- RGB
- rgb(124 134 255)
- RGB (legacy)
- rgb(124, 134, 255)
- HSL
- hsl(235.42 100.00% 74.31%) → hsl(235 100% 74%)
- HWB
- hwb(235 49% 0%)
- OKLCH
- oklch(0.670 0.177 276.9) · oklch(67.0% 0.177 276.9)
- OKLab
- oklab(0.670 0.021 -0.175)
- Lab (D50)
- lab(59.56 21.48 -62.60)
- LCH (D50)
- lch(59.56 66.19 288.94)
- Display P3
- color(display-p3 0.4935 0.5242 0.9691)
- Linear sRGB
- color(srgb-linear 0.2016 0.2384 1.0000)
Gamut: sRGB and Display P3
#7C86FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.177 and Display P3 reaches 0.191; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #7c86ff;
color: rgb(124 134 255);
color: hsl(235 100% 74%);
color: oklch(0.670 0.177 276.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.670 0.177 276.9);
}
/* arbitrary values */
class="text-[#7c86ff] bg-[oklch(0.670_0.177_276.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4935 0.5242 0.9691); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7c86ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 indigo-400#818CF8
- cornflowerblue#6495ED
- violet-400#A684FF
- v3 violet-400#A78BFA
- v3 blue-500#3B82F6
- mediumslateblue#7B68EE
- mediumpurple#9370DB
- blue-400#51A2FF
Lighter and darker, same hue and chroma
- #8D99FF · oklch(0.730 0.177 276.9) · ΔL +0.06
- #6B73EA · oklch(0.610 0.177 276.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?