#40784F

Closest named color: Dark Olive Green (#556B2F). oklch(52.2% 0.088 151), rgb(64, 120, 79).

Aa

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

About this color

#40784F is a medium-dark, moderately saturated green. In OKLCH its lightness is 52%, its chroma 0.088 and its hue 151°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Olive Green (#556B2F), ΔE 0.047 away. White text reads best on it, at 5.22:1.

Hue familyGreens
Lightnessmedium-dark (52%)
Chromamoderately saturated (0.088)
Temperaturein between
Nearest nameDark Olive Green (#556B2F)
Black text4.01:1
White text5.22:1

Values

HEX#40784F
RGBrgb(64, 120, 79)
HSLhsl(136, 30%, 36%)
OKLCHoklch(52.2% 0.088 151)

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 #40784F 5.22:1 AA Lc -81.2 Fine for body text
Black text on #40784F 4.01:1 AA large text Lc 28.3 Dividers and decoration only
#40784F text on white 5.22:1 AA Lc 75.8 Fine for body text
#40784F text on black 4.01:1 AA large text Lc -25.9 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 700.

  1. Step 50

    50

    #F3F7F3

    oklch(97.2% 0.007 145.5)

  2. Step 100

    100

    #E4ECE6

    oklch(93.5% 0.012 153.7)

  3. Step 200

    200

    #CEDED1

    oklch(88.5% 0.025 151.1)

  4. Step 300

    300

    #AEC9B3

    oklch(81% 0.042 150.7)

  5. Step 400

    400

    #82AD8B

    oklch(70.7% 0.068 150.8)

  6. Step 500

    500

    #61996E

    oklch(63.2% 0.088 150.6)

  7. Step 600

    600

    #468356

    oklch(55.6% 0.095 150.8)

  8. Step 700

    700 (this color)

    #40784F

    oklch(52.2% 0.088 151)

  9. Step 800

    800

    #2E5A3A

    oklch(42.6% 0.072 151.1)

  10. Step 900

    900

    #2A4A32

    oklch(37.7% 0.056 151)

  11. Step 950

    950

    #192B1D

    oklch(26.9% 0.035 150.5)

Export this scale for Tailwind in the Tailwind colors tool

#40784F 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)#78704C0.074
Deuteranopia (no green cones)#706A510.073
Tritanopia (no blue cones)#35766D0.048
Achromatopsia (no color)#6C6C6C0.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #40784F

    #40784F

    oklch(52.2% 0.088 151)

  • #875681

    #875681

    oklch(52.3% 0.089 331.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40784F

    #40784F

    oklch(52.2% 0.088 151)

  • #627134

    #627134

    oklch(52.2% 0.087 120.9)

  • #177A6C

    #177A6C

    oklch(52.2% 0.088 180.5)

Open the analogous palette in the generator

Split complementary

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

  • #40784F

    #40784F

    oklch(52.2% 0.088 151)

  • #725D94

    #725D94

    oklch(52.2% 0.088 301)

  • #935367

    #935367

    oklch(52.3% 0.088 0.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40784F

    #40784F

    oklch(52.2% 0.088 151)

  • #57669D

    #57669D

    oklch(52.2% 0.089 271.4)

  • #96554A

    #96554A

    oklch(52.2% 0.089 30.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40784F

    #40784F

    oklch(52.2% 0.088 151)

  • #357098

    #357098

    oklch(52.4% 0.088 240.9)

  • #875681

    #875681

    oklch(52.3% 0.089 331.2)

  • #8E5D30

    #8E5D30

    oklch(52.2% 0.088 61.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40784F 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.