HEX to OKLCH: #A3E635

Also known as: Tailwind v3 lime-400

Result

#A3E635 → oklch(0.849 0.207 128.8)

Values are shown at full precision, so converting back gives exactly #a3e635. 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. sRGB → linear

    R: 163/255 = 0.63922 → 0.366253  (((x + 0.055) / 1.055)^2.4)
    G: 230/255 = 0.90196 → 0.791298  (((x + 0.055) / 1.055)^2.4)
    B: 53/255 = 0.20784 → 0.035601  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.577208
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.620070
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.277693
  3. 3. cube root

    l′ = ∛0.577208 = 0.832615
    m′ = ∛0.620070 = 0.852734
    s′ = ∛0.277693 = 0.652411
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.84932
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.13006
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.16147
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.20734
    H = atan2(b, a) = 128.850°
    L = 0.84932
  6. 6. OKLCH

    oklch(0.84932 0.20734 128.850)
    rounded: oklch(0.849 0.207 128.8)

All formats

HEX
#a3e635
RGB
rgb(163 230 53)
RGB (legacy)
rgb(163, 230, 53)
HSL
hsl(82.71 77.97% 55.49%) → hsl(83 78% 55%)
HWB
hwb(83 21% 10%)
OKLCH
oklch(0.849 0.207 128.8) · oklch(84.9% 0.207 128.8)
OKLab
oklab(0.849 -0.130 0.161)
Lab (D50)
lab(84.53 -39.95 71.99)
LCH (D50)
lch(84.53 82.33 119.03)
Display P3
color(display-p3 0.6956 0.8948 0.3423)
Linear sRGB
color(srgb-linear 0.3663 0.7913 0.0356)

Gamut: sRGB and Display P3

#A3E635 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.225 and Display P3 reaches 0.263; this color uses 92% of the sRGB chroma available.

CSS snippets

.element {
  color: #a3e635;
  color: rgb(163 230 53);
  color: hsl(83 78% 55%);
  color: oklch(0.849 0.207 128.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.849 0.207 128.8);
}
/* arbitrary values */
class="text-[#a3e635] bg-[oklch(0.849_0.207_128.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.6956 0.8948 0.3423); }
}

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

  • #B6FA50 · oklch(0.909 0.207 128.8) · ΔL +0.06
  • #90D209 · oklch(0.789 0.207 128.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?