#AFD271

Closest named color: Pale Olive Green (#B1D27B). oklch(81.7% 0.13 125.5), rgb(175, 210, 113).

Aa

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

About this color

#AFD271 is a light, moderately saturated green. In OKLCH its lightness is 82%, its chroma 0.130 and its hue 125°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Olive Green (#B1D27B), ΔE 0.012 away. Black text reads best on it, at 12.27:1.

Hue familyGreens
Lightnesslight (82%)
Chromamoderately saturated (0.130)
Temperaturein between
Nearest namePale Olive Green (#B1D27B)
Black text12.27:1
White text1.71:1

Values

HEX#AFD271
RGBrgb(175, 210, 113)
HSLhsl(82, 52%, 63%)
OKLCHoklch(81.7% 0.13 125.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 #AFD271 1.71:1 Fails Lc -34.4 Non-text elements, placeholder text
Black text on #AFD271 12.27:1 AAA Lc 73.2 Content text, not long reading
#AFD271 text on white 1.71:1 Fails Lc 30.6 Non-text elements, placeholder text
#AFD271 text on black 12.27:1 AAA Lc -72.1 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

    #F2F8EB

    oklch(97.1% 0.018 127.1)

  2. Step 100

    100

    #E4EFD4

    oklch(93.7% 0.038 125.2)

  3. Step 200

    200

    #CEE2AE

    oklch(88.5% 0.072 124.9)

  4. Step 300

    300 (this color)

    #AFD271

    oklch(81.7% 0.13 125.5)

  5. Step 400

    400

    #86B300

    oklch(70.8% 0.179 125.6)

  6. Step 500

    500

    #739900

    oklch(63.1% 0.159 125.3)

  7. Step 600

    600

    #608100

    oklch(55.7% 0.141 125.5)

  8. Step 700

    700

    #506C00

    oklch(49.1% 0.124 125.4)

  9. Step 800

    800

    #415900

    oklch(42.8% 0.109 125.6)

  10. Step 900

    900

    #364A00

    oklch(37.8% 0.095 125.3)

  11. Step 950

    950

    #1E2C00

    oklch(27% 0.069 126.1)

Export this scale for Tailwind in the Tailwind colors tool

#AFD271 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)#DBC7690.062
Deuteranopia (no green cones)#D6C5760.063
Tritanopia (no blue cones)#B5CABB0.104
Achromatopsia (no color)#C6C6C60.131

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFD271

    #AFD271

    oklch(81.7% 0.13 125.5)

  • #D5B0FF

    #D5B0FF

    oklch(81.7% 0.115 305.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFD271

    #AFD271

    oklch(81.7% 0.13 125.5)

  • #DDC256

    #DDC256

    oklch(81.7% 0.13 95.3)

  • #77DC9E

    #77DC9E

    oklch(81.7% 0.13 155.2)

Open the analogous palette in the generator

Split complementary

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

  • #AFD271

    #AFD271

    oklch(81.7% 0.13 125.5)

  • #B2BFFF

    #B2BFFF

    oklch(81.8% 0.092 275.3)

  • #F7A2E4

    #F7A2E4

    oklch(81.6% 0.13 335.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFD271

    #AFD271

    oklch(81.7% 0.13 125.5)

  • #8CCAFF

    #8CCAFF

    oklch(81.7% 0.098 245.2)

  • #FFA5B9

    #FFA5B9

    oklch(81.6% 0.109 5.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFD271

    #AFD271

    oklch(81.7% 0.13 125.5)

  • #3FD8F8

    #3FD8F8

    oklch(81.7% 0.13 215.3)

  • #D5B0FF

    #D5B0FF

    oklch(81.7% 0.115 305.4)

  • #FFAB94

    #FFAB94

    oklch(81.8% 0.105 36)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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