HSL to HEX: #BE185D
Also known as: Tailwind v3 pink-700
Result
hsl(335.06 77.57% 41.96%) → #BE185D
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. input
H = 335.06°, S = 77.57%, L = 41.96%
2. C
C = (1 − |2L − 1|) × S = 0.65097
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.27059 (H / 60° = 5.5843, sector 5)
4. m
m = L − C / 2 = 0.09412
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.65097, 0.00000, 0.27059) R = round((0.65097 + 0.09412) × 255) = 190 G = round((0.00000 + 0.09412) × 255) = 24 B = round((0.27059 + 0.09412) × 255) = 93
6. RGB → HEX
#BE185D
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?