#A7B42E

Closest named color: Mustard Green (#A8B504). oklch(73.6% 0.152 115.1), rgb(167, 180, 46).

Aa

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

About this color

#A7B42E is a medium-light, vivid yellow. In OKLCH its lightness is 74%, its chroma 0.152 and its hue 115°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Mustard Green (#A8B504), ΔE 0.015 away. Black text reads best on it, at 9.21:1.

Hue familyYellows
Lightnessmedium-light (74%)
Chromavivid (0.152)
Temperaturein between
Nearest nameMustard Green (#A8B504)
Black text9.21:1
White text2.27:1

Values

HEX#A7B42E
RGBrgb(167, 180, 46)
HSLhsl(66, 59%, 44%)
OKLCHoklch(73.6% 0.152 115.1)

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 #A7B42E 2.27:1 Fails Lc -49.7 Large or bold text, headings
Black text on #A7B42E 9.21:1 AAA Lc 59.1 Large or bold text, headings
#A7B42E text on white 2.27:1 Fails Lc 44.8 Non-text elements, placeholder text
#A7B42E text on black 9.21:1 AAA Lc -57.3 Large or bold text, headings

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 400.

  1. Step 50

    50

    #F5F7ED

    oklch(97.2% 0.013 115.8)

  2. Step 100

    100

    #E9ECD8

    oklch(93.5% 0.027 113.8)

  3. Step 200

    200

    #D7DEB7

    oklch(88.5% 0.052 115.7)

  4. Step 300

    300

    #BEC880

    oklch(80.8% 0.095 115)

  5. Step 400

    400 (this color)

    #A7B42E

    oklch(73.6% 0.152 115.1)

  6. Step 500

    500

    #879300

    oklch(63.2% 0.144 115.4)

  7. Step 600

    600

    #717B00

    oklch(55.5% 0.126 115.3)

  8. Step 700

    700

    #5F6700

    oklch(49% 0.111 115)

  9. Step 800

    800

    #4E5500

    oklch(42.8% 0.097 115.1)

  10. Step 900

    900

    #404600

    oklch(37.6% 0.085 115.2)

  11. Step 950

    950

    #262A00

    oklch(27.2% 0.062 115.2)

Export this scale for Tailwind in the Tailwind colors tool

#A7B42E 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)#C1AB100.040
Deuteranopia (no green cones)#C0AD390.043
Tritanopia (no blue cones)#B2A99B0.134
Achromatopsia (no color)#ACACAC0.152

Harmonies

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

Complementary

The opposite hue (180°).

  • #A7B42E

    #A7B42E

    oklch(73.6% 0.152 115.1)

  • #B194FE

    #B194FE

    oklch(73.6% 0.152 295)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A7B42E

    #A7B42E

    oklch(73.6% 0.152 115.1)

  • #D5A000

    #D5A000

    oklch(73.6% 0.151 84.7)

  • #65C26B

    #65C26B

    oklch(73.6% 0.151 145.1)

Open the analogous palette in the generator

Split complementary

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

  • #A7B42E

    #A7B42E

    oklch(73.6% 0.152 115.1)

  • #80A7FF

    #80A7FF

    oklch(73.7% 0.135 265.1)

  • #D986DE

    #D986DE

    oklch(73.7% 0.152 324.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A7B42E

    #A7B42E

    oklch(73.6% 0.152 115.1)

  • #1BB7FB

    #1BB7FB

    oklch(73.7% 0.152 235.2)

  • #F27EAE

    #F27EAE

    oklch(73.7% 0.151 355.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A7B42E

    #A7B42E

    oklch(73.6% 0.152 115.1)

  • #00C0CF

    #00C0CF

    oklch(73.7% 0.126 204.7)

  • #B194FE

    #B194FE

    oklch(73.6% 0.152 295)

  • #FA7F78

    #FA7F78

    oklch(73.5% 0.151 24.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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