RGB to HEX: #C800DE

Also known as: Tailwind fuchsia-600

Result

rgb(200 0 222) → #C800DE

Values are shown at full precision, so converting back gives exactly #c800de. 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 = 200 = 12×16 + 8 → C8
    G = 0 = 0×16 + 0 → 00
    B = 222 = 13×16 + 14 → DE
  2. 2. pairs → HEX

    C8 00 DE → #C800DE

All formats

HEX
#c800de
RGB
rgb(200 0 222)
RGB (legacy)
rgb(200, 0, 222)
HSL
hsl(294.05 100.00% 43.53%) → hsl(294 100% 44%)
HWB
hwb(294 0% 13%)
OKLCH
oklch(0.598 0.283 322.8) · oklch(59.8% 0.283 322.8)
OKLab
oklab(0.598 0.225 -0.171)
Lab (D50)
lab(48.61 80.33 -61.13)
LCH (D50)
lch(48.61 100.94 322.73)
Display P3
color(display-p3 0.7187 0.1481 0.8406)
Linear sRGB
color(srgb-linear 0.5776 0.0000 0.7305)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #c800de;
  color: rgb(200 0 222);
  color: hsl(294 100% 44%);
  color: oklch(0.598 0.283 322.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.598 0.283 322.8);
}
/* arbitrary values */
class="text-[#c800de] bg-[oklch(0.598_0.283_322.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7187 0.1481 0.8406); }
}

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

  • #DD30F3 · oklch(0.658 0.283 322.8) · ΔL +0.06
  • #B400CA · oklch(0.538 0.283 322.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?