#40A221

Closest named color: Grassy Green (#419C03). oklch(63% 0.185 139.6), rgb(64, 162, 33).

Aa

Black text reads best on this color (6.40:1).

About this color

#40A221 is a medium-light, vivid green. In OKLCH its lightness is 63%, its chroma 0.185 and its hue 140°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grassy Green (#419C03), ΔE 0.018 away. Black text reads best on it, at 6.40:1.

Hue familyGreens
Lightnessmedium-light (63%)
Chromavivid (0.185)
Temperaturein between
Nearest nameGrassy Green (#419C03)
Black text6.40:1
White text3.27:1

Values

HEX#40A221
RGBrgb(64, 162, 33)
HSLhsl(106, 66%, 38%)
OKLCHoklch(63% 0.185 139.6)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #40A221 3.27:1 AA large text Lc -65.1 Content text, not long reading
Black text on #40A221 6.40:1 AA Lc 44.4 Non-text elements, placeholder text
#40A221 text on white 3.27:1 AA large text Lc 59.7 Large or bold text, headings
#40A221 text on black 6.40:1 AA Lc -42.0 Non-text elements, placeholder text

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.

  1. Step 50

    50

    #F1F8F0

    oklch(97.2% 0.013 141.8)

  2. Step 100

    100

    #E1EEDE

    oklch(93.5% 0.025 139.8)

  3. Step 200

    200

    #C8E2C2

    oklch(88.5% 0.051 139.8)

  4. Step 300

    300

    #A2CF97

    oklch(80.8% 0.09 139.5)

  5. Step 400

    400

    #6DB65B

    oklch(70.7% 0.145 139.6)

  6. Step 500

    500 (this color)

    #40A221

    oklch(63% 0.185 139.6)

  7. Step 600

    600

    #2B8A00

    oklch(55.6% 0.178 139.6)

  8. Step 700

    700

    #237400

    oklch(49% 0.157 139.6)

  9. Step 800

    800

    #1B5F00

    oklch(42.6% 0.136 139.6)

  10. Step 900

    900

    #155000

    oklch(37.8% 0.121 139.7)

  11. Step 950

    950

    #0E2F06

    oklch(27.1% 0.077 140)

Export this scale for Tailwind in the Tailwind colors tool

#40A221 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#A793000.123
Deuteranopia (no green cones)#9B8B300.124
Tritanopia (no blue cones)#349C8A0.126
Achromatopsia (no color)#8E8E8E0.186

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #40A221

    #40A221

    oklch(63% 0.185 139.6)

  • #B85DCE

    #B85DCE

    oklch(63.1% 0.185 319.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40A221

    #40A221

    oklch(63% 0.185 139.6)

  • #8F8F00

    #8F8F00

    oklch(62.9% 0.137 109.8)

  • #00A17D

    #00A17D

    oklch(63% 0.125 169.6)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #40A221

    #40A221

    oklch(63% 0.185 139.6)

  • #8A6FEF

    #8A6FEF

    oklch(62.9% 0.185 289.7)

  • #D64F99

    #D64F99

    oklch(63% 0.185 349.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40A221

    #40A221

    oklch(63% 0.185 139.6)

  • #3E85F7

    #3E85F7

    oklch(63.1% 0.185 259.6)

  • #E34D59

    #E34D59

    oklch(63% 0.185 19.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40A221

    #40A221

    oklch(63% 0.185 139.6)

  • #0096C5

    #0096C5

    oklch(63% 0.125 229.4)

  • #B85DCE

    #B85DCE

    oklch(63.1% 0.185 319.5)

  • #D66300

    #D66300

    oklch(63% 0.168 49.5)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #40A221, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #40A221 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.