HEX to OKLCH: #E7E4E7
Also known as: Tailwind mauve-200
Result
#E7E4E7 → oklch(0.922 0.005 325.6)
Values are shown at full precision, so converting back gives exactly #e7e4e7. 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: 231/255 = 0.90588 → 0.799103 (((x + 0.055) / 1.055)^2.4) G: 228/255 = 0.89412 → 0.775822 (((x + 0.055) / 1.055)^2.4) B: 231/255 = 0.90588 → 0.799103 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.786617 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.783256 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.792544
3. cube root
l′ = ∛0.786617 = 0.923112 m′ = ∛0.783256 = 0.921795 s′ = ∛0.792544 = 0.925425
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.92206 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00424 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00290
5. Oklab → OKLCH
C = √(a² + b²) = 0.00514 H = atan2(b, a) = 325.618° L = 0.92206
6. OKLCH
oklch(0.92206 0.00514 325.618) rounded: oklch(0.922 0.005 325.6)
All formats
- HEX
- #e7e4e7
- RGB
- rgb(231 228 231)
- RGB (legacy)
- rgb(231, 228, 231)
- HSL
- hsl(300.00 5.88% 90.00%) → hsl(300 6% 90%)
- HWB
- hwb(300 89% 9%)
- OKLCH
- oklch(0.922 0.005 325.6) · oklch(92.2% 0.005 325.6)
- OKLab
- oklab(0.922 0.004 -0.003)
- Lab (D50)
- lab(90.89 1.45 -1.09)
- LCH (D50)
- lch(90.89 1.81 323.02)
- Display P3
- color(display-p3 0.9038 0.8945 0.9050)
- Linear sRGB
- color(srgb-linear 0.7991 0.7758 0.7991)
Gamut: sRGB and Display P3
#E7E4E7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.070 and Display P3 reaches 0.078; this color uses 7% of the sRGB chroma available.
CSS snippets
.element {
color: #e7e4e7;
color: rgb(231 228 231);
color: hsl(300 6% 90%);
color: oklch(0.922 0.005 325.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.922 0.005 325.6);
}
/* arbitrary values */
class="text-[#e7e4e7] bg-[oklch(0.922_0.005_325.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9038 0.8945 0.9050); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #e7e4e7 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- zinc-200#E4E4E7
- neutral-200#E5E5E5
- taupe-200#E8E4E3
- stone-200#E7E5E4
- gray-200#E5E7EB
- mist-200#E3E7E8
- olive-200#E8E8E3
- slate-200#E2E8F0
Lighter and darker, same hue and chroma
- #FBF8FB · oklch(0.982 0.005 325.6) · ΔL +0.06
- #D3D0D3 · oklch(0.862 0.005 325.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?