RGB to HEX: #450A0A

Also known as: Tailwind v3 red-950

Result

rgb(69 10 10) → #450A0A

Values are shown at full precision, so converting back gives exactly #450a0a. 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 = 69 = 4×16 + 5 → 45
    G = 10 = 0×16 + 10 → 0A
    B = 10 = 0×16 + 10 → 0A
  2. 2. pairs → HEX

    45 0A 0A → #450A0A

All formats

HEX
#450a0a
RGB
rgb(69 10 10)
RGB (legacy)
rgb(69, 10, 10)
HSL
hsl(0.00 74.68% 15.49%) → hsl(0 75% 15%)
HWB
hwb(0 4% 73%)
OKLCH
oklch(0.258 0.089 26.0) · oklch(25.8% 0.089 26.0)
OKLab
oklab(0.258 0.080 0.039)
Lab (D50)
lab(12.99 27.93 16.18)
LCH (D50)
lch(12.99 32.27 30.08)
Display P3
color(display-p3 0.2465 0.0601 0.0507)
Linear sRGB
color(srgb-linear 0.0595 0.0030 0.0030)

Gamut: sRGB and Display P3

#450A0A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.105 and Display P3 reaches 0.118; this color uses 85% of the sRGB chroma available.

CSS snippets

.element {
  color: #450a0a;
  color: rgb(69 10 10);
  color: hsl(0 75% 15%);
  color: oklch(0.258 0.089 26.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.258 0.089 26.0);
}
/* arbitrary values */
class="text-[#450a0a] bg-[oklch(0.258_0.089_26.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2465 0.0601 0.0507); }
}

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

  • #571C19 · oklch(0.318 0.089 26.0) · ΔL +0.06
  • #330000 · oklch(0.198 0.089 26.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?