OKLCH to HEX: #E7E4E7

Also known as: Tailwind mauve-200

Result

oklch(0.92206 0.00514 325.618) → #E7E4E7

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. 1. input

    oklch(0.92206 0.00514 325.618)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00424
    b = C·sin H = -0.00290
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.923115
    m′ = L − 0.1056·a − 0.0639·b = 0.921798
    s′ = L − 0.0895·a − 1.2915·b = 0.925429
  4. 4. cube

    l = 0.923115³ = 0.786624
    m = 0.921798³ = 0.783261
    s = 0.925429³ = 0.792555
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.799117
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.775824
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.799117
  6. 6. linear → sRGB, × 255

    R = 0.90589 × 255 = 231.00 → 231
    G = 0.89412 × 255 = 228.00 → 228
    B = 0.90589 × 255 = 231.00 → 231
  7. 7. RGB → HEX

    #E7E4E7

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).

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

All converters →

Guides: What is OKLCH?