RGB to HEX: #E8E8E3

Also known as: Tailwind olive-200

Result

rgb(232 232 227) → #E8E8E3

Values are shown at full precision, so converting back gives exactly #e8e8e3. 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 = 232 = 14×16 + 8 → E8
    G = 232 = 14×16 + 8 → E8
    B = 227 = 14×16 + 3 → E3
  2. 2. pairs → HEX

    E8 E8 E3 → #E8E8E3

All formats

HEX
#e8e8e3
RGB
rgb(232 232 227)
RGB (legacy)
rgb(232, 232, 227)
HSL
hsl(60.00 9.80% 90.00%) → hsl(60 10% 90%)
HWB
hwb(60 89% 9%)
OKLCH
oklch(0.930 0.007 106.5) · oklch(93.0% 0.007 106.5)
OKLab
oklab(0.930 -0.002 0.006)
Lab (D50)
lab(91.89 -0.66 2.44)
LCH (D50)
lch(91.89 2.53 105.08)
Display P3
color(display-p3 0.9098 0.9098 0.8920)
Linear sRGB
color(srgb-linear 0.8070 0.8070 0.7682)

Gamut: sRGB and Display P3

#E8E8E3 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.199 and Display P3 reaches 0.231; this color uses 3% of the sRGB chroma available.

CSS snippets

.element {
  color: #e8e8e3;
  color: rgb(232 232 227);
  color: hsl(60 10% 90%);
  color: oklch(0.930 0.007 106.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.930 0.007 106.5);
}
/* arbitrary values */
class="text-[#e8e8e3] bg-[oklch(0.930_0.007_106.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9098 0.9098 0.8920); }
}

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

  • #FCFCF7 · oklch(0.990 0.007 106.5) · ΔL +0.06
  • #D4D4CF · oklch(0.870 0.007 106.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?