#40B542

Closest named color: Leafy Green (#51B73B). oklch(68.3% 0.187 143.4), rgb(64, 181, 66).

Aa

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

About this color

#40B542 is a medium-light, vivid green. In OKLCH its lightness is 68%, its chroma 0.187 and its hue 143°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Leafy Green (#51B73B), ΔE 0.014 away. Black text reads best on it, at 7.90:1.

Hue familyGreens
Lightnessmedium-light (68%)
Chromavivid (0.187)
Temperaturein between
Nearest nameLeafy Green (#51B73B)
Black text7.90:1
White text2.65:1

Values

HEX#40B542
RGBrgb(64, 181, 66)
HSLhsl(121, 48%, 48%)
OKLCHoklch(68.3% 0.187 143.4)

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 #40B542 2.65:1 Fails Lc -56.4 Large or bold text, headings
Black text on #40B542 7.90:1 AAA Lc 52.8 Large or bold text, headings
#40B542 text on white 2.65:1 Fails Lc 51.3 Large or bold text, headings
#40B542 text on black 7.90:1 AAA Lc -50.6 Large or bold text, headings

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 400.

  1. Step 50

    50

    #F0F8EF

    oklch(97.1% 0.015 142.2)

  2. Step 100

    100

    #DDF0DC

    oklch(93.6% 0.033 143.9)

  3. Step 200

    200

    #C0E5BE

    oklch(88.5% 0.066 143.7)

  4. Step 300

    300

    #92D48F

    oklch(80.8% 0.117 143.4)

  5. Step 400

    400 (this color)

    #40B542

    oklch(68.3% 0.187 143.4)

  6. Step 500

    500

    #00A719

    oklch(63.2% 0.209 143.4)

  7. Step 600

    600

    #008C13

    oklch(55.5% 0.183 143.4)

  8. Step 700

    700

    #00760F

    oklch(49.1% 0.162 143.5)

  9. Step 800

    800

    #00610A

    oklch(42.7% 0.141 143.4)

  10. Step 900

    900

    #005107

    oklch(37.7% 0.124 143.4)

  11. Step 950

    950

    #003103

    oklch(27.2% 0.089 143.6)

Export this scale for Tailwind in the Tailwind colors tool

#40B542 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)#B9A5340.136
Deuteranopia (no green cones)#AA9B4C0.135
Tritanopia (no blue cones)#26B09D0.118
Achromatopsia (no color)#9F9F9F0.188

Harmonies

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

Complementary

The opposite hue (180°).

  • #40B542

    #40B542

    oklch(68.3% 0.187 143.4)

  • #CF6BDA

    #CF6BDA

    oklch(68.4% 0.186 323.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40B542

    #40B542

    oklch(68.3% 0.187 143.4)

  • #9AA200

    #9AA200

    oklch(68.3% 0.153 113.3)

  • #00B392

    #00B392

    oklch(68.4% 0.131 173.2)

Open the analogous palette in the generator

Split complementary

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

  • #40B542

    #40B542

    oklch(68.3% 0.187 143.4)

  • #A17DFF

    #A17DFF

    oklch(68.3% 0.186 293.7)

  • #EC5FA2

    #EC5FA2

    oklch(68.3% 0.186 353.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40B542

    #40B542

    oklch(68.3% 0.187 143.4)

  • #6295FF

    #6295FF

    oklch(68.4% 0.166 263.3)

  • #F75F5F

    #F75F5F

    oklch(68.3% 0.187 23.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40B542

    #40B542

    oklch(68.3% 0.187 143.4)

  • #00A6E2

    #00A6E2

    oklch(68.3% 0.142 233.4)

  • #CF6BDA

    #CF6BDA

    oklch(68.4% 0.186 323.5)

  • #E87500

    #E87500

    oklch(68.3% 0.172 53.5)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #40B542.

Similar named colors

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

Use #40B542 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.