#AFB252

Closest named color: Light Olive Green (#A4BE5C). oklch(74.1% 0.12 110.6), rgb(175, 178, 82).

Aa

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

About this color

#AFB252 is a medium-light, moderately saturated yellow. In OKLCH its lightness is 74%, its chroma 0.120 and its hue 111°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Light Olive Green (#A4BE5C), ΔE 0.032 away. Black text reads best on it, at 9.31:1.

Hue familyYellows
Lightnessmedium-light (74%)
Chromamoderately saturated (0.120)
Temperaturein between
Nearest nameLight Olive Green (#A4BE5C)
Black text9.31:1
White text2.25:1

Values

HEX#AFB252
RGBrgb(175, 178, 82)
HSLhsl(62, 38%, 51%)
OKLCHoklch(74.1% 0.12 110.6)

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 #AFB252 2.25:1 Fails Lc -49.2 Large or bold text, headings
Black text on #AFB252 9.31:1 AAA Lc 59.6 Large or bold text, headings
#AFB252 text on white 2.25:1 Fails Lc 44.4 Non-text elements, placeholder text
#AFB252 text on black 9.31:1 AAA Lc -57.7 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

    #F5F6EF

    oklch(97% 0.009 113.2)

  2. Step 100

    100

    #EAEBDB

    oklch(93.5% 0.021 109.7)

  3. Step 200

    200

    #DADCBD

    oklch(88.5% 0.041 110.2)

  4. Step 300

    300

    #C2C68D

    oklch(80.9% 0.076 111.3)

  5. Step 400

    400 (this color)

    #AFB252

    oklch(74.1% 0.12 110.6)

  6. Step 500

    500

    #8E9000

    oklch(63.1% 0.138 110.8)

  7. Step 600

    600

    #777900

    oklch(55.6% 0.122 110.9)

  8. Step 700

    700

    #646500

    oklch(49% 0.107 110.5)

  9. Step 800

    800

    #525300

    oklch(42.7% 0.094 110.6)

  10. Step 900

    900

    #444500

    oklch(37.7% 0.083 110.7)

  11. Step 950

    950

    #282900

    oklch(27.1% 0.06 111.2)

Export this scale for Tailwind in the Tailwind colors tool

#AFB252 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)#BEAB480.026
Deuteranopia (no green cones)#BFAE570.027
Tritanopia (no blue cones)#BAA89D0.108
Achromatopsia (no color)#ADADAD0.120

Harmonies

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

Complementary

The opposite hue (180°).

  • #AFB252

    #AFB252

    oklch(74.1% 0.12 110.6)

  • #AB9DF1

    #AB9DF1

    oklch(74% 0.12 290.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AFB252

    #AFB252

    oklch(74.1% 0.12 110.6)

  • #D2A34A

    #D2A34A

    oklch(74.2% 0.12 81)

  • #80BE75

    #80BE75

    oklch(74.1% 0.12 140.7)

Open the analogous palette in the generator

Split complementary

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

  • #AFB252

    #AFB252

    oklch(74.1% 0.12 110.6)

  • #7FABF7

    #7FABF7

    oklch(74% 0.121 260.9)

  • #CD92DA

    #CD92DA

    oklch(74.2% 0.119 320.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AFB252

    #AFB252

    oklch(74.1% 0.12 110.6)

  • #4CB9E8

    #4CB9E8

    oklch(74.2% 0.119 230)

  • #E48BB5

    #E48BB5

    oklch(74.2% 0.119 350.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AFB252

    #AFB252

    oklch(74.1% 0.12 110.6)

  • #26C1CA

    #26C1CA

    oklch(74.1% 0.12 201.1)

  • #AB9DF1

    #AB9DF1

    oklch(74% 0.12 290.8)

  • #ED8B8B

    #ED8B8B

    oklch(74.1% 0.12 20.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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