CSS named color

Lime Green #32CD32

The CSS keyword limegreen is #32CD32. It is a light vivid green in the green family. In OKLCH it sits at lightness 0.742, chroma 0.229 and hue 142.8°.

Relative luminance
0.4457
OKLCH L · C · h
0.742 · 0.229 · 142.8
Best text
Black 9.91:1
Hue family
Green

#32CD32 color codes

HEX
#32CD32
RGB
rgb(50, 205, 50)
HSL
hsl(120, 61%, 50%)
OKLCH
oklch(0.742 0.229 142.8)
OKLab
oklab(0.742 -0.182 0.138)
CIELAB (D65)
L* 72.61, a* -67.13, b* 61.44
XYZ (D65)
X 23.72, Y 44.57, Z 10.37
CMYK (naive)
cmyk(76%, 0%, 76%, 20%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #32CD32 accessible?

Black text on it reaches 9.91:1, passing AAA. White text fails at 2.11:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    9.91:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +63
  • White text on it

    2.11:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −45
  • As text on black

    9.91:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −61
  • As text on white

    2.11:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +40

Nearest versions that pass 4.5:1

  • For text on white

    #008907 4.58:1

    Darkening its OKLCH lightness from 0.74 to 0.55 reaches 4.58:1 on white, keeping the hue.

  • For text on black

    #32CD32 9.91:1

    It already reaches 9.91:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #32CD32 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #32CD32

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #32CD32 sits at step 400.

  1. 50#E1FFDE
    White
    1.07
    Black
    19.56
  2. 100#BFFFBA
    White
    1.15
    Black
    18.22
  3. 200#7DF878
    White
    1.34
    Black
    15.57
  4. 300#58DF54
    White
    1.73
    Black
    12.09
  5. 400This color#32CD32
    White
    2.11
    Black
    9.91
  6. 500#00A30B
    White
    3.36
    Black
    6.24
  7. 600#008707
    White
    4.69
    Black
    4.46
  8. 700#006C04
    White
    6.67
    Black
    3.14
  9. 800#004F02
    White
    9.90
    Black
    2.11
  10. 900#003401
    White
    14.07
    Black
    1.49
  11. 950#001D00
    White
    17.86
    Black
    1.17

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #32CD32 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.250; #32CD32 uses 92% of it. Display P3, which many recent phones and laptops show, reaches 0.300 there: 20% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.229
sRGB edge
0.250
Display P3 edge
0.300
Rec. 2020 edge
0.312
Dominant wavelength
549 nm
Excitation purity
64%
Chromaticity
x 0.3016, y 0.5666
  • This color#32CD32
  • Most vivid in sRGB#00CF11
  • Most vivid in Display P3oklch(0.742 0.300 142.8)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #32cd32;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.2636 0.8212 0); }
}

Mixing

Mixing #32CD32

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#99E699
  • OKLab50%#A8E8A3
  • OKLCH50%#A8E8A3

Black #000000

  • sRGB50%#196719
  • OKLab50%#0D4E0D
  • OKLCH50%#0D4E0D

Its complement #EC6EFD

  • sRGB50%#8F9E98
  • OKLab50%#ABABAB
  • OKLCH50%#00BAFB
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #32cd32, white);
color: color-mix(in oklch, #32cd32 50%, white);

In use

#32CD32 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:19.91:1 Passes
  • Link and body-size textText, 4.5:12.11:1 Fails
  • Large headingLarge text, 3:12.11:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.11:1 Fails

For text on this page, the nearest shade that passes is #008907 4.58:1

Dark page

  • Button labelText, 4.5:19.91:1 Passes
  • Link and body-size textText, 4.5:18.84:1 Passes
  • Large headingLarge text, 3:18.84:1 Passes
  • Icons, borders and focus ringsNon-text, 3:18.84:1 Passes

Color vision

How #32CD32 looks with color blindness

Achromatopsia changes it most, ΔE2000 29.9; tritanopia changes it least, 23.1.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #D1B90D ΔE2000 27.0

    Distinct

    Reads as light soft amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #C0AE43 ΔE2000 25.0

    Distinct

    Reads as light soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #00C7B0 ΔE2000 23.1

    Distinct

    Reads as light soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #B2B2B2 ΔE2000 29.9

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #EC6EFD. Their lightness contrast is only 1.20:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#32CD32 · #EC6EFD94.5Stays distinct
Protanopia#D1B90D · #5598FF61.5Stays distinct
Deuteranopia#C0AE43 · #81A7F953.6Stays distinct
Tritanopia#00C7B0 · #EF82AC60.3Stays distinct
Achromatopsia#B2B2B2 · #A2A2A24.6Easily confused

Harmony

Color harmonies for #32CD32

Its complement is #EC6EFD, a light vivid magenta.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#32CD32
  • Complement#EC6EFD

Complementary

Open in Harmony Studio
  • −30°#ADB500
  • Base#32CD32
  • +30°#00C8A2
  • Base#32CD32
  • +120°#7EAAFF
  • +240°#FF7F7C
  • Base#32CD32
  • +150°#AF98FF
  • +210°#FF74B6

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-limegreen: #32cd32;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        limegreen: '#32cd32',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-limegreen: oklch(0.742 0.229 142.8);
}

Design token (W3C DTCG)

{
  "color": {
    "limegreen": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.1961, 0.8039, 0.1961],
        "hex": "#32cd32"
      },
      "$description": "CSS named color limegreen"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let limegreen = Color(.sRGB, red: 0.196, green: 0.804, blue: 0.196, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Limegreen = Color(0xFF32CD32)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #32CD32 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.