HEX to HSL: #BE185D
Also known as: Tailwind v3 pink-700
Result
#BE185D → hsl(335 78% 42%)
Values are shown at full precision, so converting back gives exactly #be185d. 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.7451 G = 0.0941 B = 0.3647
2. max, min, Δ
max = 0.7451 min = 0.0941 Δ = max − min = 0.6510
3. L
L = (max + min) / 2 = 0.4196 = 41.96%
4. S
S = Δ / (1 − |2L − 1|) = 0.7757 = 77.57%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0941 − 0.3647) / 0.6510) mod 6) = 335.06°
6. HSL
hsl(335.06 77.57% 41.96%)
All formats
- HEX
- #be185d
- RGB
- rgb(190 24 93)
- RGB (legacy)
- rgb(190, 24, 93)
- HSL
- hsl(335.06 77.57% 41.96%) → hsl(335 78% 42%)
- HWB
- hwb(335 9% 25%)
- OKLCH
- oklch(0.525 0.199 4.0) · oklch(52.5% 0.199 4.0)
- OKLab
- oklab(0.525 0.198 0.014)
- Lab (D50)
- lab(42.42 64.31 6.52)
- LCH (D50)
- lch(42.42 64.64 5.79)
- Display P3
- color(display-p3 0.6837 0.1753 0.3642)
- Linear sRGB
- color(srgb-linear 0.5149 0.0091 0.1095)
Gamut: sRGB and Display P3
#BE185D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.211 and Display P3 reaches 0.238; this color uses 94% of the sRGB chroma available.
CSS snippets
.element {
color: #be185d;
color: rgb(190 24 93);
color: hsl(335 78% 42%);
color: oklch(0.525 0.199 4.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.525 0.199 4.0);
}
/* arbitrary values */
class="text-[#be185d] bg-[oklch(0.525_0.199_4.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6837 0.1753 0.3642); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #be185d calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- pink-700#C6005C
- v3 rose-700#BE123C
- rose-700#C70036
- mediumvioletred#C71585
- pink-800#A3004C
- v3 pink-600#DB2777
- v3 pink-800#9D174D
- rose-800#A50036
Lighter and darker, same hue and chroma
- #D3336E · oklch(0.585 0.199 4.0) · ΔL +0.06
- #A9004C · oklch(0.465 0.199 4.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?