#7A8F2A

Closest named color: Olive Drab (#6B8E23). oklch(61.3% 0.127 120.5), rgb(122, 143, 42).

Aa

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

About this color

#7A8F2A is a medium-dark, moderately saturated yellow. In OKLCH its lightness is 61%, its chroma 0.127 and its hue 120°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Olive Drab (#6B8E23), ΔE 0.022 away. Black text reads best on it, at 5.78:1.

Hue familyYellows
Lightnessmedium-dark (61%)
Chromamoderately saturated (0.127)
Temperaturein between
Nearest nameOlive Drab (#6B8E23)
Black text5.78:1
White text3.62:1

Values

HEX#7A8F2A
RGBrgb(122, 143, 42)
HSLhsl(72, 55%, 36%)
OKLCHoklch(61.3% 0.127 120.5)

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 #7A8F2A 3.62:1 AA large text Lc -69.2 Content text, not long reading
Black text on #7A8F2A 5.78:1 AA Lc 40.3 Non-text elements, placeholder text
#7A8F2A text on white 3.62:1 AA large text Lc 63.8 Content text, not long reading
#7A8F2A text on black 5.78:1 AA Lc -37.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

    #F4F6F0

    oklch(97% 0.008 121.6)

  2. Step 100

    100

    #E8ECDF

    oklch(93.6% 0.018 120.7)

  3. Step 200

    200

    #D6DDC4

    oklch(88.5% 0.034 119.8)

  4. Step 300

    300

    #BBC79A

    oklch(80.9% 0.062 119.9)

  5. Step 400

    400

    #98AA61

    oklch(70.7% 0.1 120.3)

  6. Step 500

    500 (this color)

    #7A8F2A

    oklch(61.3% 0.127 120.5)

  7. Step 600

    600

    #697E00

    oklch(55.6% 0.133 120.6)

  8. Step 700

    700

    #586A00

    oklch(49.2% 0.117 120.6)

  9. Step 800

    800

    #485700

    oklch(42.9% 0.102 120.5)

  10. Step 900

    900

    #3C480A

    oklch(37.8% 0.083 120.5)

  11. Step 950

    950

    #232A09

    oklch(27% 0.053 120.2)

Export this scale for Tailwind in the Tailwind colors tool

#7A8F2A 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)#98871A0.046
Deuteranopia (no green cones)#9586320.048
Tritanopia (no blue cones)#81877B0.108
Achromatopsia (no color)#8686860.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #7A8F2A

    #7A8F2A

    oklch(61.3% 0.127 120.5)

  • #9171C4

    #9171C4

    oklch(61.4% 0.126 300.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7A8F2A

    #7A8F2A

    oklch(61.3% 0.127 120.5)

  • #A18000

    #A18000

    oklch(61.4% 0.125 90.5)

  • #41995A

    #41995A

    oklch(61.3% 0.127 150.3)

Open the analogous palette in the generator

Split complementary

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

  • #7A8F2A

    #7A8F2A

    oklch(61.3% 0.127 120.5)

  • #687ED0

    #687ED0

    oklch(61.3% 0.127 270.9)

  • #AF66A8

    #AF66A8

    oklch(61.4% 0.127 330.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7A8F2A

    #7A8F2A

    oklch(61.3% 0.127 120.5)

  • #288CC9

    #288CC9

    oklch(61.3% 0.128 241.1)

  • #C06180

    #C06180

    oklch(61.4% 0.126 0.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7A8F2A

    #7A8F2A

    oklch(61.3% 0.127 120.5)

  • #0095A8

    #0095A8

    oklch(61.4% 0.106 210.5)

  • #9171C4

    #9171C4

    oklch(61.4% 0.126 300.5)

  • #C56454

    #C56454

    oklch(61.4% 0.127 30.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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