#407D0C

Closest named color: Dark Grass Green (#388004). oklch(52.8% 0.15 135.3), rgb(64, 125, 12).

Aa

White text reads best on this color (5.05:1).

About this color

#407D0C is a medium-dark, vivid green. In OKLCH its lightness is 53%, its chroma 0.150 and its hue 135°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Grass Green (#388004), ΔE 0.012 away. White text reads best on it, at 5.05:1.

Hue familyGreens
Lightnessmedium-dark (53%)
Chromavivid (0.150)
Temperaturein between
Nearest nameDark Grass Green (#388004)
Black text4.15:1
White text5.05:1

Values

HEX#407D0C
RGBrgb(64, 125, 12)
HSLhsl(92, 82%, 27%)
OKLCHoklch(52.8% 0.15 135.3)

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 #407D0C 5.05:1 AA Lc -80.0 Fine for body text
Black text on #407D0C 4.15:1 AA large text Lc 29.5 Dividers and decoration only
#407D0C text on white 5.05:1 AA Lc 74.6 Content text, not long reading
#407D0C text on black 4.15:1 AA large text Lc -27.1 Dividers and decoration only

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

  1. Step 50

    50

    #F3F7F1

    oklch(97.1% 0.009 134.9)

  2. Step 100

    100

    #E4EDE0

    oklch(93.6% 0.02 135.8)

  3. Step 200

    200

    #CFDFC7

    oklch(88.5% 0.037 135)

  4. Step 300

    300

    #AECB9F

    oklch(80.9% 0.068 135)

  5. Step 400

    400

    #83B06A

    oklch(70.8% 0.108 135)

  6. Step 500

    500

    #629B40

    oklch(63% 0.138 135.4)

  7. Step 600

    600 (this color)

    #407D0C

    oklch(52.8% 0.15 135.3)

  8. Step 700

    700

    #39710A

    oklch(49.1% 0.14 135.4)

  9. Step 800

    800

    #305C0F

    oklch(42.7% 0.115 135.3)

  10. Step 900

    900

    #2B4C16

    oklch(37.8% 0.09 135.3)

  11. Step 950

    950

    #192C0E

    oklch(26.8% 0.057 135.5)

Export this scale for Tailwind in the Tailwind colors tool

#407D0C 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)#8272000.091
Deuteranopia (no green cones)#7A6D1C0.090
Tritanopia (no blue cones)#3E786A0.109
Achromatopsia (no color)#6F6F6F0.151

Harmonies

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

Complementary

The opposite hue (180°).

  • #407D0C

    #407D0C

    oklch(52.8% 0.15 135.3)

  • #8B4BA5

    #8B4BA5

    oklch(52.7% 0.15 315.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #407D0C

    #407D0C

    oklch(52.8% 0.15 135.3)

  • #756E00

    #756E00

    oklch(52.8% 0.112 105.2)

  • #007F5B

    #007F5B

    oklch(52.8% 0.111 165)

Open the analogous palette in the generator

Split complementary

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

  • #407D0C

    #407D0C

    oklch(52.8% 0.15 135.3)

  • #655ABD

    #655ABD

    oklch(52.8% 0.15 285.1)

  • #A4407E

    #A4407E

    oklch(52.7% 0.15 345.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #407D0C

    #407D0C

    oklch(52.8% 0.15 135.3)

  • #236ABF

    #236ABF

    oklch(52.7% 0.15 255.5)

  • #B13D4E

    #B13D4E

    oklch(52.8% 0.151 15.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #407D0C

    #407D0C

    oklch(52.8% 0.15 135.3)

  • #007697

    #007697

    oklch(52.7% 0.101 225.9)

  • #8B4BA5

    #8B4BA5

    oklch(52.7% 0.15 315.3)

  • #AE4700

    #AE4700

    oklch(52.8% 0.15 45.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #407D0C 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.