#7D9840

Closest named color: Drab Green (#749551). oklch(64% 0.119 124), rgb(125, 152, 64).

Aa

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

About this color

#7D9840 is a medium-light, moderately saturated yellow. In OKLCH its lightness is 64%, its chroma 0.119 and its hue 124°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Drab Green (#749551), ΔE 0.024 away. Black text reads best on it, at 6.43:1.

Hue familyYellows
Lightnessmedium-light (64%)
Chromamoderately saturated (0.119)
Temperaturein between
Nearest nameDrab Green (#749551)
Black text6.43:1
White text3.26:1

Values

HEX#7D9840
RGBrgb(125, 152, 64)
HSLhsl(78, 41%, 42%)
OKLCHoklch(64% 0.119 124)

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 #7D9840 3.26:1 AA large text Lc -65.3 Content text, not long reading
Black text on #7D9840 6.43:1 AA Lc 44.2 Non-text elements, placeholder text
#7D9840 text on white 3.26:1 AA large text Lc 59.9 Large or bold text, headings
#7D9840 text on black 6.43:1 AA Lc -41.9 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

    #F4F6F1

    oklch(97% 0.007 124.4)

  2. Step 100

    100

    #E7ECE0

    oklch(93.6% 0.017 125.3)

  3. Step 200

    200

    #D4DDC6

    oklch(88.4% 0.032 124.5)

  4. Step 300

    300

    #B8C89E

    oklch(81% 0.06 124.7)

  5. Step 400

    400

    #94AB69

    oklch(70.8% 0.094 124.4)

  6. Step 500

    500 (this color)

    #7D9840

    oklch(64% 0.119 124)

  7. Step 600

    600

    #647F15

    oklch(55.6% 0.129 123.8)

  8. Step 700

    700

    #536B03

    oklch(49.1% 0.12 123.7)

  9. Step 800

    800

    #44580B

    oklch(42.9% 0.1 124)

  10. Step 900

    900

    #394814

    oklch(37.6% 0.077 123.9)

  11. Step 950

    950

    #212A0D

    oklch(26.8% 0.049 124.1)

Export this scale for Tailwind in the Tailwind colors tool

#7D9840 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)#A08F370.052
Deuteranopia (no green cones)#9C8E460.053
Tritanopia (no blue cones)#8291850.098
Achromatopsia (no color)#8E8E8E0.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #7D9840

    #7D9840

    oklch(64% 0.119 124)

  • #9C79C7

    #9C79C7

    oklch(64.1% 0.119 303.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7D9840

    #7D9840

    oklch(64% 0.119 124)

  • #A48A23

    #A48A23

    oklch(64% 0.12 94)

  • #48A16A

    #48A16A

    oklch(64% 0.12 154)

Open the analogous palette in the generator

Split complementary

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

  • #7D9840

    #7D9840

    oklch(64% 0.119 124)

  • #7686D4

    #7686D4

    oklch(64.1% 0.118 273.8)

  • #B76FAA

    #B76FAA

    oklch(63.9% 0.119 333.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7D9840

    #7D9840

    oklch(64% 0.119 124)

  • #4393CF

    #4393CF

    oklch(64% 0.119 244)

  • #C76B84

    #C76B84

    oklch(64% 0.119 3.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7D9840

    #7D9840

    oklch(64% 0.119 124)

  • #009DB6

    #009DB6

    oklch(64% 0.113 214.3)

  • #9C79C7

    #9C79C7

    oklch(64.1% 0.119 303.9)

  • #CA6F5A

    #CA6F5A

    oklch(64% 0.12 34)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #7D9840 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.