RGB to HEX: #C6D2FF

Also known as: Tailwind indigo-200

Result

rgb(198 210 255) → #C6D2FF

Values are shown at full precision, so converting back gives exactly #c6d2ff. 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 = 198 = 12×16 + 6 → C6
    G = 210 = 13×16 + 2 → D2
    B = 255 = 15×16 + 15 → FF
  2. 2. pairs → HEX

    C6 D2 FF → #C6D2FF

All formats

HEX
#c6d2ff
RGB
rgb(198 210 255)
RGB (legacy)
rgb(198, 210, 255)
HSL
hsl(227.37 100.00% 88.82%) → hsl(227 100% 89%)
HWB
hwb(227 78% 0%)
OKLCH
oklch(0.870 0.064 273.3) · oklch(87.0% 0.064 273.3)
OKLab
oklab(0.870 0.004 -0.064)
Lab (D50)
lab(84.40 2.85 -23.57)
LCH (D50)
lch(84.40 23.74 276.88)
Display P3
color(display-p3 0.7851 0.8220 0.9853)
Linear sRGB
color(srgb-linear 0.5647 0.6445 1.0000)

Gamut: sRGB and Display P3

#C6D2FF 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 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #c6d2ff;
  color: rgb(198 210 255);
  color: hsl(227 100% 89%);
  color: oklch(0.870 0.064 273.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.870 0.064 273.3);
}
/* arbitrary values */
class="text-[#c6d2ff] bg-[oklch(0.870_0.064_273.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7851 0.8220 0.9853); }
}

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

  • #D9E6FF · oklch(0.929 0.064 273.3) · ΔL +0.06
  • #B3BFEB · oklch(0.810 0.064 273.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?