RGB to HEX: #E7000B

Also known as: Tailwind red-600

Result

rgb(231 0 11) → #E7000B

Values are shown at full precision, so converting back gives exactly #e7000b. 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 = 231 = 14×16 + 7 → E7
    G = 0 = 0×16 + 0 → 00
    B = 11 = 0×16 + 11 → 0B
  2. 2. pairs → HEX

    E7 00 0B → #E7000B

All formats

HEX
#e7000b
RGB
rgb(231 0 11)
RGB (legacy)
rgb(231, 0, 11)
HSL
hsl(357.14 100.00% 45.29%) → hsl(357 100% 45%)
HWB
hwb(357 0% 9%)
OKLCH
oklch(0.583 0.239 28.5) · oklch(58.3% 0.239 28.5)
OKLab
oklab(0.583 0.210 0.114)
Lab (D50)
lab(49.25 75.04 61.71)
LCH (D50)
lch(49.25 97.16 39.43)
Display P3
color(display-p3 0.8307 0.1775 0.1367)
Linear sRGB
color(srgb-linear 0.7991 0.0000 0.0033)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #e7000b;
  color: rgb(231 0 11);
  color: hsl(357 100% 45%);
  color: oklch(0.583 0.239 28.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.583 0.239 28.5);
}
/* arbitrary values */
class="text-[#e7000b] bg-[oklch(0.583_0.239_28.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8307 0.1775 0.1367); }
}

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

  • #FD3028 · oklch(0.643 0.239 28.5) · ΔL +0.06
  • #D10000 · oklch(0.523 0.239 28.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?