HEX to OKLCH: #FDA5D5
Also known as: Tailwind pink-300
Result
#FDA5D5 → oklch(0.823 0.119 346.2)
Values are shown at full precision, so converting back gives exactly #fda5d5. 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: 253/255 = 0.99216 → 0.982251 (((x + 0.055) / 1.055)^2.4) G: 165/255 = 0.64706 → 0.376262 (((x + 0.055) / 1.055)^2.4) B: 213/255 = 0.83529 → 0.665387 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.640938 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.535724 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.611915
3. cube root
l′ = ∛0.640938 = 0.862195 m′ = ∛0.535724 = 0.812170 s′ = ∛0.611915 = 0.848979
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.82255 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.11553 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.02847
5. Oklab → OKLCH
C = √(a² + b²) = 0.11899 H = atan2(b, a) = 346.157° L = 0.82255
6. OKLCH
oklch(0.82255 0.11899 346.157) rounded: oklch(0.823 0.119 346.2)
All formats
- HEX
- #fda5d5
- RGB
- rgb(253 165 213)
- RGB (legacy)
- rgb(253, 165, 213)
- HSL
- hsl(327.27 95.65% 81.96%) → hsl(327 96% 82%)
- HWB
- hwb(327 65% 1%)
- OKLCH
- oklch(0.823 0.119 346.2) · oklch(82.3% 0.119 346.2)
- OKLab
- oklab(0.823 0.116 -0.028)
- Lab (D50)
- lab(77.79 38.23 -10.35)
- LCH (D50)
- lch(77.79 39.60 344.85)
- Display P3
- color(display-p3 0.9427 0.6625 0.8266)
- Linear sRGB
- color(srgb-linear 0.9823 0.3763 0.6654)
Gamut: sRGB and Display P3
#FDA5D5 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.124 and Display P3 reaches 0.164; this color uses 96% of the sRGB chroma available.
CSS snippets
.element {
color: #fda5d5;
color: rgb(253 165 213);
color: hsl(327 96% 82%);
color: oklch(0.823 0.119 346.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.823 0.119 346.2);
}
/* arbitrary values */
class="text-[#fda5d5] bg-[oklch(0.823_0.119_346.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9427 0.6625 0.8266); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fda5d5 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 pink-300#F9A8D4
- v3 rose-300#FDA4AF
- rose-300#FFA1AD
- plum#DDA0DD
- v3 fuchsia-300#F0ABFC
- lightpink#FFB6C1
- fuchsia-300#F4A8FF
- v3 red-300#FCA5A5
Lighter and darker, same hue and chroma
- #FFB8E9 · oklch(0.883 0.119 346.2) · ΔL +0.06
- #E892C2 · oklch(0.763 0.119 346.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?