#AFC882

Closest named color: Pale Olive (#B9CC81). oklch(79.7% 0.097 124.5), rgb(175, 200, 130).

Aa

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

About this color

#AFC882 is a light, moderately saturated yellow. In OKLCH its lightness is 80%, its chroma 0.097 and its hue 125°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pale Olive (#B9CC81), ΔE 0.018 away. Black text reads best on it, at 11.40:1.

Hue familyYellows
Lightnesslight (80%)
Chromamoderately saturated (0.097)
Temperaturein between
Nearest namePale Olive (#B9CC81)
Black text11.40:1
White text1.84:1

Values

HEX#AFC882
RGBrgb(175, 200, 130)
HSLhsl(81, 39%, 65%)
OKLCHoklch(79.7% 0.097 124.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 #AFC882 1.84:1 Fails Lc -38.7 Non-text elements, placeholder text
Black text on #AFC882 11.40:1 AAA Lc 69.3 Content text, not long reading
#AFC882 text on white 1.84:1 Fails Lc 34.5 Non-text elements, placeholder text
#AFC882 text on black 11.40:1 AAA Lc -68.0 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

    #F3F7EE

    oklch(97.1% 0.013 126.4)

  2. Step 100

    100

    #E5EDD9

    oklch(93.5% 0.028 124.8)

  3. Step 200

    200

    #D1E0B9

    oklch(88.5% 0.054 124.6)

  4. Step 300

    300 (this color)

    #AFC882

    oklch(79.7% 0.097 124.5)

  5. Step 400

    400

    #8CB032

    oklch(70.7% 0.155 124.3)

  6. Step 500

    500

    #759800

    oklch(63% 0.157 124.4)

  7. Step 600

    600

    #628000

    oklch(55.6% 0.139 124.4)

  8. Step 700

    700

    #526C00

    oklch(49.2% 0.123 124.5)

  9. Step 800

    800

    #425800

    oklch(42.6% 0.107 124.6)

  10. Step 900

    900

    #374900

    oklch(37.6% 0.094 124.1)

  11. Step 950

    950

    #1F2C00

    oklch(27.1% 0.068 125.1)

Export this scale for Tailwind in the Tailwind colors tool

#AFC882 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)#D0C07D0.047
Deuteranopia (no green cones)#CCBF850.046
Tritanopia (no blue cones)#B4C2B60.077
Achromatopsia (no color)#BFBFBF0.097

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFC882

    #AFC882

    oklch(79.7% 0.097 124.5)

  • #CBADF0

    #CBADF0

    oklch(79.7% 0.098 304.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFC882

    #AFC882

    oklch(79.7% 0.097 124.5)

  • #D1BC72

    #D1BC72

    oklch(79.7% 0.097 94.1)

  • #89D0A1

    #89D0A1

    oklch(79.8% 0.098 154.6)

Open the analogous palette in the generator

Split complementary

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

  • #AFC882

    #AFC882

    oklch(79.7% 0.097 124.5)

  • #AAB8FC

    #AAB8FC

    oklch(79.7% 0.098 275)

  • #E4A5D6

    #E4A5D6

    oklch(79.6% 0.098 334.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFC882

    #AFC882

    oklch(79.7% 0.097 124.5)

  • #86C4F7

    #86C4F7

    oklch(79.7% 0.097 244.2)

  • #F3A3B5

    #F3A3B5

    oklch(79.8% 0.097 4.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFC882

    #AFC882

    oklch(79.7% 0.097 124.5)

  • #6BCDE3

    #6BCDE3

    oklch(79.7% 0.097 214.2)

  • #CBADF0

    #CBADF0

    oklch(79.7% 0.098 304.7)

  • #F4A693

    #F4A693

    oklch(79.6% 0.097 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 #AFC882, closest first.

Similar named colors

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

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