RGB to HEX: #F5F3FF

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

Result

rgb(245 243 255) → #F5F3FF

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. base 10 → base 16

    R = 245 = 15×16 + 5 → F5
    G = 243 = 15×16 + 3 → F3
    B = 255 = 15×16 + 15 → FF
  2. 2. pairs → HEX

    F5 F3 FF → #F5F3FF

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?