#9FAF2F

Closest named color: Avocado (#90B134). oklch(71.8% 0.148 116.5), rgb(159, 175, 47).

Aa

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

About this color

#9FAF2F is a medium-light, vivid yellow. In OKLCH its lightness is 72%, its chroma 0.148 and its hue 117°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Avocado (#90B134), ΔE 0.019 away. Black text reads best on it, at 8.64:1.

Hue familyYellows
Lightnessmedium-light (72%)
Chromavivid (0.148)
Temperaturein between
Nearest nameAvocado (#90B134)
Black text8.64:1
White text2.42:1

Values

HEX#9FAF2F
RGBrgb(159, 175, 47)
HSLhsl(68, 58%, 44%)
OKLCHoklch(71.8% 0.148 116.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 #9FAF2F 2.42:1 Fails Lc -52.7 Large or bold text, headings
Black text on #9FAF2F 8.64:1 AAA Lc 56.3 Large or bold text, headings
#9FAF2F text on white 2.42:1 Fails Lc 47.7 Large or bold text, headings
#9FAF2F text on black 8.64:1 AAA Lc -54.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

    #E8ECD9

    oklch(93.5% 0.026 116.6)

  3. Step 200

    200

    #D6DEB8

    oklch(88.5% 0.051 117.1)

  4. Step 300

    300

    #BDC983

    oklch(81% 0.093 116.4)

  5. Step 400

    400 (this color)

    #9FAF2F

    oklch(71.8% 0.148 116.5)

  6. Step 500

    500

    #859300

    oklch(63% 0.144 116.3)

  7. Step 600

    600

    #6F7C00

    oklch(55.6% 0.128 116.8)

  8. Step 700

    700

    #5D6800

    oklch(49.1% 0.113 116.8)

  9. Step 800

    800

    #4C5500

    oklch(42.7% 0.098 116.6)

  10. Step 900

    900

    #3F4700

    oklch(37.7% 0.087 116.8)

  11. Step 950

    950

    #252A00

    oklch(27.1% 0.062 116.5)

Export this scale for Tailwind in the Tailwind colors tool

#9FAF2F 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)#BBA6160.043
Deuteranopia (no green cones)#BAA73A0.046
Tritanopia (no blue cones)#A9A5960.128
Achromatopsia (no color)#A6A6A60.148

Harmonies

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

Complementary

The opposite hue (180°).

  • #9FAF2F

    #9FAF2F

    oklch(71.8% 0.148 116.5)

  • #AE8EF5

    #AE8EF5

    oklch(71.8% 0.149 296.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #9FAF2F

    #9FAF2F

    oklch(71.8% 0.148 116.5)

  • #CC9C00

    #CC9C00

    oklch(71.8% 0.147 86.4)

  • #5EBC6A

    #5EBC6A

    oklch(71.7% 0.147 146.5)

Open the analogous palette in the generator

Split complementary

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

  • #9FAF2F

    #9FAF2F

    oklch(71.8% 0.148 116.5)

  • #7AA0FF

    #7AA0FF

    oklch(71.9% 0.145 266.3)

  • #D481D5

    #D481D5

    oklch(71.9% 0.148 326.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #9FAF2F

    #9FAF2F

    oklch(71.8% 0.148 116.5)

  • #22B0F4

    #22B0F4

    oklch(71.8% 0.148 236.7)

  • #EB79A6

    #EB79A6

    oklch(71.8% 0.148 356.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #9FAF2F

    #9FAF2F

    oklch(71.8% 0.148 116.5)

  • #00B9CA

    #00B9CA

    oklch(71.8% 0.123 206.4)

  • #AE8EF5

    #AE8EF5

    oklch(71.8% 0.149 296.8)

  • #F37C71

    #F37C71

    oklch(71.9% 0.148 26.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #9FAF2F 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.