#AFD248

Closest named color: Yellow Green (#9ACD32). oklch(81.2% 0.167 122.4), rgb(175, 210, 72).

Aa

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

About this color

#AFD248 is a light, vivid yellow. In OKLCH its lightness is 81%, its chroma 0.167 and its hue 122°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Yellow Green (#9ACD32), ΔE 0.035 away. Black text reads best on it, at 12.13:1.

Hue familyYellows
Lightnesslight (81%)
Chromavivid (0.167)
Temperaturein between
Nearest nameYellow Green (#9ACD32)
Black text12.13:1
White text1.73:1

Values

HEX#AFD248
RGBrgb(175, 210, 72)
HSLhsl(75, 61%, 55%)
OKLCHoklch(81.2% 0.167 122.4)

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 #AFD248 1.73:1 Fails Lc -35.1 Non-text elements, placeholder text
Black text on #AFD248 12.13:1 AAA Lc 72.6 Content text, not long reading
#AFD248 text on white 1.73:1 Fails Lc 31.2 Non-text elements, placeholder text
#AFD248 text on black 12.13:1 AAA Lc -71.5 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

    #F3F8E8

    oklch(97.1% 0.022 121)

  2. Step 100

    100

    #E4F0CC

    oklch(93.7% 0.049 122.3)

  3. Step 200

    200

    #CEE49F

    oklch(88.6% 0.093 122.7)

  4. Step 300

    300 (this color)

    #AFD248

    oklch(81.2% 0.167 122.4)

  5. Step 400

    400

    #8EB000

    oklch(70.6% 0.172 122.4)

  6. Step 500

    500

    #7A9700

    oklch(63.1% 0.154 122.2)

  7. Step 600

    600

    #667F00

    oklch(55.6% 0.135 122.3)

  8. Step 700

    700

    #556B00

    oklch(49.2% 0.12 122.6)

  9. Step 800

    800

    #455700

    oklch(42.6% 0.104 122.4)

  10. Step 900

    900

    #394900

    oklch(37.8% 0.092 122.7)

  11. Step 950

    950

    #212B00

    oklch(27% 0.066 122.2)

Export this scale for Tailwind in the Tailwind colors tool

#AFD248 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)#DEC6350.066
Deuteranopia (no green cones)#D9C5520.068
Tritanopia (no blue cones)#B8C8B60.138
Achromatopsia (no color)#C5C5C50.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFD248

    #AFD248

    oklch(81.2% 0.167 122.4)

  • #D0B0FF

    #D0B0FF

    oklch(81.3% 0.114 302.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFD248

    #AFD248

    oklch(81.2% 0.167 122.4)

  • #E7BD00

    #E7BD00

    oklch(81.2% 0.166 92.6)

  • #5DE08B

    #5DE08B

    oklch(81.3% 0.167 152.3)

Open the analogous palette in the generator

Split complementary

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

  • #AFD248

    #AFD248

    oklch(81.2% 0.167 122.4)

  • #ADBEFF

    #ADBEFF

    oklch(81.2% 0.094 272.8)

  • #FF97F0

    #FF97F0

    oklch(81.3% 0.165 332.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFD248

    #AFD248

    oklch(81.2% 0.167 122.4)

  • #84CAFF

    #84CAFF

    oklch(81.3% 0.103 242.3)

  • #FFA2BB

    #FFA2BB

    oklch(81.2% 0.114 2.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFD248

    #AFD248

    oklch(81.2% 0.167 122.4)

  • #00D9F7

    #00D9F7

    oklch(81.3% 0.142 212.2)

  • #D0B0FF

    #D0B0FF

    oklch(81.3% 0.114 302.5)

  • #FFA895

    #FFA895

    oklch(81.3% 0.107 32.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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