HEX to RGB: #F5F3FF

Also known as: Tailwind violet-50, Tailwind v3 violet-50

Result

#F5F3FF → rgb(245 243 255)

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

    #F5F3FF → F5 | F3 | FF
  2. 2. base 16 → base 10

    R = F5₁₆ = 15×16 + 5 = 245
    G = F3₁₆ = 15×16 + 3 = 243
    B = FF₁₆ = 15×16 + 15 = 255
  3. 3. RGB

    rgb(245 243 255)

All formats

HEX
#f5f3ff
RGB
rgb(245 243 255)
RGB (legacy)
rgb(245, 243, 255)
HSL
hsl(250.00 100.00% 97.65%) → hsl(250 100% 98%)
HWB
hwb(250 95% 0%)
OKLCH
oklch(0.969 0.016 293.8) · oklch(96.9% 0.016 293.8)
OKLab
oklab(0.969 0.006 -0.015)
Lab (D50)
lab(96.26 2.30 -5.54)
LCH (D50)
lch(96.26 5.99 292.53)
Display P3
color(display-p3 0.9594 0.9532 0.9960)
Linear sRGB
color(srgb-linear 0.9131 0.8963 1.0000)

Gamut: sRGB and Display P3

#F5F3FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.016 and Display P3 reaches 0.018; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #f5f3ff;
  color: rgb(245 243 255);
  color: hsl(250 100% 98%);
  color: oklch(0.969 0.016 293.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.969 0.016 293.8);
}
/* arbitrary values */
class="text-[#f5f3ff] bg-[oklch(0.969_0.016_293.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9594 0.9532 0.9960); }
}

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

  • #FFFDFF · oklch(1.000 0.016 293.8) · ΔL +0.06
  • #E1DFEB · oklch(0.909 0.016 293.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?