HSL to HEX: #F3F1F3

Also known as: Tailwind mauve-100

Result

hsl(300.00 7.69% 94.90%) → #F3F1F3

Values are shown at full precision, so converting back gives exactly #f3f1f3. 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

    H = 300.00°, S = 7.69%, L = 94.90%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.00784
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00784   (H / 60° = 5.0000, sector 5)
  4. 4. m

    m = L − C / 2 = 0.94508
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00784, 0.00000, 0.00784)
    R = round((0.00784 + 0.94508) × 255) = 243
    G = round((0.00000 + 0.94508) × 255) = 241
    B = round((0.00784 + 0.94508) × 255) = 243
  6. 6. RGB → HEX

    #F3F1F3

All formats

HEX
#f3f1f3
RGB
rgb(243 241 243)
RGB (legacy)
rgb(243, 241, 243)
HSL
hsl(300.00 7.69% 94.90%) → hsl(300 8% 95%)
HWB
hwb(300 95% 5%)
OKLCH
oklch(0.960 0.003 325.6) · oklch(96.0% 0.003 325.6)
OKLab
oklab(0.960 0.003 -0.002)
Lab (D50)
lab(95.34 0.95 -0.72)
LCH (D50)
lch(95.34 1.19 323.00)
Display P3
color(display-p3 0.9516 0.9454 0.9524)
Linear sRGB
color(srgb-linear 0.8963 0.8796 0.8963)

Gamut: sRGB and Display P3

#F3F1F3 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.035 and Display P3 reaches 0.039; this color uses 10% of the sRGB chroma available.

CSS snippets

.element {
  color: #f3f1f3;
  color: rgb(243 241 243);
  color: hsl(300 8% 95%);
  color: oklch(0.960 0.003 325.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.960 0.003 325.6);
}
/* arbitrary values */
class="text-[#f3f1f3] bg-[oklch(0.960_0.003_325.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9516 0.9454 0.9524); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f3f1f3 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

  • #FFFEFF · oklch(1.000 0.003 325.6) · ΔL +0.06
  • #DFDDDF · oklch(0.900 0.003 325.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?