RGB to HEX: #65A30D

Also known as: Tailwind v3 lime-600

Result

rgb(101 163 13) → #65A30D

Values are shown at full precision, so converting back gives exactly #65a30d. 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 = 101 = 6×16 + 5 → 65
    G = 163 = 10×16 + 3 → A3
    B = 13 = 0×16 + 13 → 0D
  2. 2. pairs → HEX

    65 A3 0D → #65A30D

All formats

HEX
#65a30d
RGB
rgb(101 163 13)
RGB (legacy)
rgb(101, 163, 13)
HSL
hsl(84.80 85.23% 34.51%) → hsl(85 85% 35%)
HWB
hwb(85 5% 36%)
OKLCH
oklch(0.648 0.175 131.7) · oklch(64.8% 0.175 131.7)
OKLab
oklab(0.648 -0.117 0.131)
Lab (D50)
lab(60.94 -36.45 59.58)
LCH (D50)
lch(60.94 69.85 121.46)
Display P3
color(display-p3 0.4517 0.6330 0.1977)
Linear sRGB
color(srgb-linear 0.1301 0.3663 0.0040)

Gamut: sRGB and Display P3

#65A30D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.179 and Display P3 reaches 0.210; this color uses 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #65a30d;
  color: rgb(101 163 13);
  color: hsl(85 85% 35%);
  color: oklch(0.648 0.175 131.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.648 0.175 131.7);
}
/* arbitrary values */
class="text-[#65a30d] bg-[oklch(0.648_0.175_131.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4517 0.6330 0.1977); }
}

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

  • #77B62E · oklch(0.708 0.175 131.7) · ΔL +0.06
  • #539000 · oklch(0.588 0.175 131.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?