#AFC87E

Closest named color: Light Moss Green (#A6C875). oklch(79.6% 0.102 123.9), rgb(175, 200, 126).

Aa

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

About this color

#AFC87E is a light, moderately saturated yellow. In OKLCH its lightness is 80%, its chroma 0.102 and its hue 124°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Moss Green (#A6C875), ΔE 0.017 away. Black text reads best on it, at 11.38:1.

Hue familyYellows
Lightnesslight (80%)
Chromamoderately saturated (0.102)
Temperaturein between
Nearest nameLight Moss Green (#A6C875)
Black text11.38:1
White text1.84:1

Values

HEX#AFC87E
RGBrgb(175, 200, 126)
HSLhsl(80, 40%, 64%)
OKLCHoklch(79.6% 0.102 123.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 #AFC87E 1.84:1 Fails Lc -38.8 Non-text elements, placeholder text
Black text on #AFC87E 11.38:1 AAA Lc 69.2 Content text, not long reading
#AFC87E text on white 1.84:1 Fails Lc 34.6 Non-text elements, placeholder text
#AFC87E text on black 11.38:1 AAA Lc -67.9 Content text, not long reading

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

  1. Step 50

    50

    #F3F7ED

    oklch(97% 0.014 124.6)

  2. Step 100

    100

    #E6EED8

    oklch(93.7% 0.03 123.3)

  3. Step 200

    200

    #D1E0B7

    oklch(88.5% 0.057 123.9)

  4. Step 300

    300 (this color)

    #AFC87E

    oklch(79.6% 0.102 123.9)

  5. Step 400

    400

    #8CB025

    oklch(70.6% 0.162 123.8)

  6. Step 500

    500

    #769800

    oklch(63.1% 0.157 124)

  7. Step 600

    600

    #638000

    oklch(55.7% 0.138 124)

  8. Step 700

    700

    #536B00

    oklch(49% 0.121 123.6)

  9. Step 800

    800

    #435800

    oklch(42.7% 0.106 124.1)

  10. Step 900

    900

    #374900

    oklch(37.6% 0.094 124.1)

  11. Step 950

    950

    #202B00

    oklch(26.9% 0.066 123.3)

Export this scale for Tailwind in the Tailwind colors tool

#AFC87E 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)#D0BF790.048
Deuteranopia (no green cones)#CCBF820.046
Tritanopia (no blue cones)#B4C1B50.082
Achromatopsia (no color)#BFBFBF0.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFC87E

    #AFC87E

    oklch(79.6% 0.102 123.9)

  • #CBACF2

    #CBACF2

    oklch(79.6% 0.102 304.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFC87E

    #AFC87E

    oklch(79.6% 0.102 123.9)

  • #D2BC6D

    #D2BC6D

    oklch(79.7% 0.102 94.3)

  • #87D09F

    #87D09F

    oklch(79.6% 0.101 154.1)

Open the analogous palette in the generator

Split complementary

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

  • #AFC87E

    #AFC87E

    oklch(79.6% 0.102 123.9)

  • #A8B8FE

    #A8B8FE

    oklch(79.6% 0.101 274)

  • #E5A4D8

    #E5A4D8

    oklch(79.6% 0.102 333.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFC87E

    #AFC87E

    oklch(79.6% 0.102 123.9)

  • #82C4FA

    #82C4FA

    oklch(79.7% 0.102 244.3)

  • #F4A1B5

    #F4A1B5

    oklch(79.6% 0.101 3.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFC87E

    #AFC87E

    oklch(79.6% 0.102 123.9)

  • #65CEE4

    #65CEE4

    oklch(79.7% 0.102 213.3)

  • #CBACF2

    #CBACF2

    oklch(79.6% 0.102 304.4)

  • #F7A591

    #F7A591

    oklch(79.8% 0.102 34.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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