RGB to HEX: #6A7282

Also known as: Tailwind gray-500

Result

rgb(106 114 130) → #6A7282

Values are shown at full precision, so converting back gives exactly #6a7282. 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 = 106 = 6×16 + 10 → 6A
    G = 114 = 7×16 + 2 → 72
    B = 130 = 8×16 + 2 → 82
  2. 2. pairs → HEX

    6A 72 82 → #6A7282

All formats

HEX
#6a7282
RGB
rgb(106 114 130)
RGB (legacy)
rgb(106, 114, 130)
HSL
hsl(220.00 10.17% 46.27%) → hsl(220 10% 46%)
HWB
hwb(220 42% 49%)
OKLCH
oklch(0.551 0.027 264.3) · oklch(55.1% 0.027 264.3)
OKLab
oklab(0.551 -0.003 -0.027)
Lab (D50)
lab(47.78 -0.40 -9.93)
LCH (D50)
lch(47.78 9.93 267.70)
Display P3
color(display-p3 0.4215 0.4461 0.5041)
Linear sRGB
color(srgb-linear 0.1441 0.1683 0.2232)

Gamut: sRGB and Display P3

#6A7282 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.248 and Display P3 reaches 0.265; this color uses 11% of the sRGB chroma available.

CSS snippets

.element {
  color: #6a7282;
  color: rgb(106 114 130);
  color: hsl(220 10% 46%);
  color: oklch(0.551 0.027 264.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.551 0.027 264.3);
}
/* arbitrary values */
class="text-[#6a7282] bg-[oklch(0.551_0.027_264.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4215 0.4461 0.5041); }
}

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

  • #7B8494 · oklch(0.611 0.027 264.3) · ΔL +0.06
  • #596170 · oklch(0.491 0.027 264.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?