#7F8917

Closest named color: Swamp Green (#748500). oklch(60.2% 0.129 114.9), rgb(127, 137, 23).

Aa

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

About this color

#7F8917 is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 60%, its chroma 0.129 and its hue 115°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Swamp Green (#748500), ΔE 0.022 away. Black text reads best on it, at 5.49:1.

Hue familyYellows
Lightnessmedium-dark (60%)
Chromamoderately saturated (0.129)
Temperaturein between
Nearest nameSwamp Green (#748500)
Black text5.49:1
White text3.82:1

Values

HEX#7F8917
RGBrgb(127, 137, 23)
HSLhsl(65, 71%, 31%)
OKLCHoklch(60.2% 0.129 114.9)

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 #7F8917 3.82:1 AA large text Lc -71.1 Content text, not long reading
Black text on #7F8917 5.49:1 AA Lc 38.5 Non-text elements, placeholder text
#7F8917 text on white 3.82:1 AA large text Lc 65.6 Content text, not long reading
#7F8917 text on black 5.49:1 AA Lc -36.1 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

    #F5F6F0

    oklch(97.1% 0.008 114.2)

  2. Step 100

    100

    #E9EBDE

    oklch(93.5% 0.017 113.8)

  3. Step 200

    200

    #D8DCC2

    oklch(88.4% 0.035 114.2)

  4. Step 300

    300

    #BFC697

    oklch(80.9% 0.064 114.7)

  5. Step 400

    400

    #9EA85C

    oklch(70.6% 0.101 115.2)

  6. Step 500

    500 (this color)

    #7F8917

    oklch(60.2% 0.129 114.9)

  7. Step 600

    600

    #727B00

    oklch(55.6% 0.126 114.8)

  8. Step 700

    700

    #5F6700

    oklch(49% 0.111 115)

  9. Step 800

    800

    #4E5400

    oklch(42.6% 0.096 114.4)

  10. Step 900

    900

    #414602

    oklch(37.7% 0.084 114.3)

  11. Step 950

    950

    #262906

    oklch(26.9% 0.053 114.1)

Export this scale for Tailwind in the Tailwind colors tool

#7F8917 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)#9382000.033
Deuteranopia (no green cones)#9383230.037
Tritanopia (no blue cones)#8880750.115
Achromatopsia (no color)#8282820.129

Harmonies

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

Complementary

The opposite hue (180°).

  • #7F8917

    #7F8917

    oklch(60.2% 0.129 114.9)

  • #876FC5

    #876FC5

    oklch(60.2% 0.129 295.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7F8917

    #7F8917

    oklch(60.2% 0.129 114.9)

  • #A27A00

    #A27A00

    oklch(60.2% 0.123 85.5)

  • #49944D

    #49944D

    oklch(60.1% 0.129 144.8)

Open the analogous palette in the generator

Split complementary

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

  • #7F8917

    #7F8917

    oklch(60.2% 0.129 114.9)

  • #5A7DCE

    #5A7DCE

    oklch(60.1% 0.13 265.1)

  • #A763AB

    #A763AB

    oklch(60.1% 0.13 325)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7F8917

    #7F8917

    oklch(60.2% 0.129 114.9)

  • #008BC1

    #008BC1

    oklch(60.1% 0.127 234.9)

  • #BB5D85

    #BB5D85

    oklch(60.2% 0.129 354.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7F8917

    #7F8917

    oklch(60.2% 0.129 114.9)

  • #00929E

    #00929E

    oklch(60.2% 0.103 205)

  • #876FC5

    #876FC5

    oklch(60.2% 0.129 295.1)

  • #C25E59

    #C25E59

    oklch(60.2% 0.129 24.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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