#7B7C40

Closest named color: Drab (#828344). oklch(57.2% 0.082 109.6), rgb(123, 124, 64).

Aa

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

About this color

#7B7C40 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 57%, its chroma 0.082 and its hue 110°. Its hue sits on the warm side of the wheel. The nearest named color is Drab (#828344), ΔE 0.023 away. Black text reads best on it, at 4.79:1.

Hue familyYellows
Lightnessmedium-dark (57%)
Chromamoderately saturated (0.082)
Temperaturewarm
Nearest nameDrab (#828344)
Black text4.79:1
White text4.37:1

Values

HEX#7B7C40
RGBrgb(123, 124, 64)
HSLhsl(61, 32%, 37%)
OKLCHoklch(57.2% 0.082 109.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 #7B7C40 4.37:1 AA large text Lc -75.8 Fine for body text
Black text on #7B7C40 4.79:1 AA Lc 33.8 Non-text elements, placeholder text
#7B7C40 text on white 4.37:1 AA large text Lc 70.3 Content text, not long reading
#7B7C40 text on black 4.79:1 AA Lc -31.4 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 600.

  1. Step 50

    50

    #F5F6F2

    oklch(97.1% 0.005 117.9)

  2. Step 100

    100

    #EAEBE3

    oklch(93.7% 0.011 112.4)

  3. Step 200

    200

    #DADACB

    oklch(88.4% 0.02 106.8)

  4. Step 300

    300

    #C2C3A8

    oklch(80.9% 0.037 108.9)

  5. Step 400

    400

    #A3A479

    oklch(70.7% 0.059 108.9)

  6. Step 500

    500

    #8C8E57

    oklch(63.2% 0.076 110.2)

  7. Step 600

    600 (this color)

    #7B7C40

    oklch(57.2% 0.082 109.6)

  8. Step 700

    700

    #64642E

    oklch(49.1% 0.075 108.9)

  9. Step 800

    800

    #515227

    oklch(42.7% 0.063 110)

  10. Step 900

    900

    #434424

    oklch(37.7% 0.049 110.1)

  11. Step 950

    950

    #272816

    oklch(27% 0.031 111)

Export this scale for Tailwind in the Tailwind colors tool

#7B7C40 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)#84783B0.016
Deuteranopia (no green cones)#857A430.017
Tritanopia (no blue cones)#82766E0.072
Achromatopsia (no color)#7979790.082

Harmonies

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

Complementary

The opposite hue (180°).

  • #7B7C40

    #7B7C40

    oklch(57.2% 0.082 109.6)

  • #7770A5

    #7770A5

    oklch(57.3% 0.081 289.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7B7C40

    #7B7C40

    oklch(57.2% 0.082 109.6)

  • #92723C

    #92723C

    oklch(57.2% 0.082 79)

  • #5E8455

    #5E8455

    oklch(57.2% 0.082 139.7)

Open the analogous palette in the generator

Split complementary

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

  • #7B7C40

    #7B7C40

    oklch(57.2% 0.082 109.6)

  • #5B79A8

    #5B79A8

    oklch(57.3% 0.081 259.2)

  • #8D6896

    #8D6896

    oklch(57.1% 0.081 319.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7B7C40

    #7B7C40

    oklch(57.2% 0.082 109.6)

  • #3E819F

    #3E819F

    oklch(57.2% 0.082 229.8)

  • #9C637F

    #9C637F

    oklch(57% 0.082 349.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7B7C40

    #7B7C40

    oklch(57.2% 0.082 109.6)

  • #2E868B

    #2E868B

    oklch(57.1% 0.082 200.5)

  • #7770A5

    #7770A5

    oklch(57.3% 0.081 289.6)

  • #A36464

    #A36464

    oklch(57.2% 0.082 19.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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