RGB to HEX: #C7D2FE

Also known as: Tailwind v3 indigo-200

Result

rgb(199 210 254) → #C7D2FE

Values are shown at full precision, so converting back gives exactly #c7d2fe. 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 = 199 = 12×16 + 7 → C7
    G = 210 = 13×16 + 2 → D2
    B = 254 = 15×16 + 14 → FE
  2. 2. pairs → HEX

    C7 D2 FE → #C7D2FE

All formats

HEX
#c7d2fe
RGB
rgb(199 210 254)
RGB (legacy)
rgb(199, 210, 254)
HSL
hsl(228.00 96.49% 88.82%) → hsl(228 96% 89%)
HWB
hwb(228 78% 0%)
OKLCH
oklch(0.870 0.062 274.0) · oklch(87.0% 0.062 274.0)
OKLab
oklab(0.870 0.004 -0.062)
Lab (D50)
lab(84.44 3.00 -22.97)
LCH (D50)
lch(84.44 23.16 277.43)
Display P3
color(display-p3 0.7883 0.8221 0.9817)
Linear sRGB
color(srgb-linear 0.5711 0.6445 0.9911)

Gamut: sRGB and Display P3

#C7D2FE is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.064 and Display P3 reaches 0.070; this color uses 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #c7d2fe;
  color: rgb(199 210 254);
  color: hsl(228 96% 89%);
  color: oklch(0.870 0.062 274.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.870 0.062 274.0);
}
/* arbitrary values */
class="text-[#c7d2fe] bg-[oklch(0.870_0.062_274.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7883 0.8221 0.9817); }
}

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

  • #DAE6FF · oklch(0.930 0.062 274.0) · ΔL +0.06
  • #B4BFEA · oklch(0.810 0.062 274.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?